Commit Graph
2295 Commits
Author SHA1 Message Date
Jesse Glick 10dddebf7b [FIXED JENKINS-11739] Various mistakes in annotation processors affecting some plugins. 2012-08-03 17:34:56 -04:00
Jesse Glick f39fbdb312 [JENKINS-14495] Refined fix - needed to pull uniqueness check out of apply() fn in case we were being passed an Array of nodes.
Fixes test failures introduced by  dbb100d, and adds a test for it now that I know it can be done.
2012-08-03 15:46:32 -04:00
Jesse Glick dbb100da58 [FIXED JENKINS-14495] Hetero lists not working correctly after adding elements.
Unlike [JENKINS-14514] this is a true fix rather than a workaround (now removed), and is more general.
cjo9900 discovered that behaviors were being redundantly registered (as of 1.474 the monolithic JS is broken up);
this caused some behaviors to be run repeatedly on the same elements, breaking reasonable expectations of some behaviors.
The ideal fix would be to change Behavior.register to be idempotent: for example, key it by selector, then maintain a set of distinct behavior functions for each.
Unfortunately some adjuncts directly call Behavior.list.unshift, bypassing register(...), which would be tricky to intercept (would need to make a mock of Array).
The known one cases are in core, but it is possible plugin adjuncts do this too, in which case it would be incompatible to (say) change the Array<Map<String,Behavior>> to a Map<String,Array<Behavior>>.
Instead, permitting redundant registrations as before, and just silently skipping all but the first at runtime when applying behaviors.
Beware that since adjuncts are loaded from multiple places, different JS function objects are registered each time, so a naive set of behavior functions does not work;
have to identify functions by their toString in order to ensure that each is run only once.
(Currently once _per selector_, conceivably >1x per element; could if necessary be refined to make sure a given behavior is only run once on a given element during one call to applySubtree even if the element matches multiple selectors.)
2012-08-03 12:53:48 -04:00
Jesse Glick b98b57038c Link fix. 2012-07-31 11:50:03 -04:00
lvotypko ff612d29c0 Add clock_anime.git into folder 16x16 too 2012-07-31 16:39:59 +02:00
lvotypko 98f0e9fc92 Show in view scheduled jobs 2012-07-31 11:55:13 +02:00
Kohsuke Kawaguchi 0427b1449b refactored 2012-07-31 16:30:33 +09:00
Kohsuke Kawaguchi 7db5fb34aa refactored 2012-07-31 16:30:33 +09:00
Jesse Glick 680fd480c3 Corrected a misleading comment. 2012-07-27 16:51:28 -04:00
Kohsuke Kawaguchi 83c0a6f12c these help files were in a wrong location 2012-07-23 14:44:54 -07:00
Kohsuke Kawaguchi 31bda5786a making this more discoverable 2012-07-23 14:10:16 -07:00
Kohsuke Kawaguchi 8afad9f8a4 the trunk is toward 1.477-SNAPSHOT 2012-07-23 08:34:59 -07:00
Kohsuke Kawaguchi 6a80b2af5e the trunk is toward 1.476-SNAPSHOT 2012-07-11 08:51:59 -07:00
Kohsuke Kawaguchi 12ee4f9f22 the trunk is toward 1.475-SNAPSHOT 2012-07-02 02:27:28 -07:00
Kohsuke Kawaguchi 57a4c02cda Merge branch 'pull-506' 2012-06-29 20:21:28 -07:00
Kohsuke Kawaguchi 30837d8903 Better encapsulation of JavaScript.
Don't expose stuff that need not be exposed.
2012-06-29 20:19:23 -07:00
Kohsuke Kawaguchi 96442cd9cd splitting JavaScript into smaller fragments for better maintainability.
One of the problems with the current way Jenkins puts JavaScripts is that most everything is in a single file. It doesn't highlight the relationship between those fragments and their corresponding tag files.

So I'm experimenting with moving out these fragments into individual JavaScript files co-located with the tag file. They then get loaded into the page via <st:adjunct>. Each script is served with unique URL such that the browser will not even have to try conditional GET when loading different pages, so this should prevent the performance problem caused by the fact that there are now lots of <script> tags in the page.

 If for some reason even this turns out to be a problem, we can always add additional build steps to concatenate them all.
2012-06-28 15:24:53 -07:00
Kohsuke Kawaguchi d7bd7f59ee the trunk is toward 1.474-SNAPSHOT 2012-06-25 08:40:09 -07:00
Kohsuke Kawaguchi eae5278f77 Bumping up to 1.39
1.40 brings in 1.7 support, but I'm still seeing some bug reports.
Waiting a bit more before going there.
2012-06-22 20:04:46 -07:00
Kohsuke Kawaguchi 02854d87bd Wrong variable name 2012-06-22 17:45:17 -07:00
Kohsuke Kawaguchi d318bbae5b Added code to assist form-element-path plugin 2012-06-22 17:41:30 -07:00
Kohsuke Kawaguchi 74bea665c6 copy & keep CSS class names 2012-06-22 17:41:30 -07:00
Kohsuke Kawaguchi 7c5efe367b deprecating 'fooButton' class in favor of 'foo-button'
This makes it consistent with other buttons like repeatable-add-button, and use of '-' prevents name collisions with form names, and make all of those UI controls addressible in the same namespace
2012-06-22 17:41:30 -07:00
Alberto Gragera 581b8256b1 Make Jenkins stop polling resources if the page is not visible (and if the browser supports Page Visibility API), restoring pollings when the page becomes visible again. This will make tabs in the background to not consume resources 2012-06-22 12:55:02 +02:00
Kohsuke Kawaguchi 966b176b64 the trunk is toward 1.473-SNAPSHOT 2012-06-18 23:26:14 -07:00
Kohsuke Kawaguchi 03a63ea8b2 the trunk is toward 1.472-SNAPSHOT 2012-06-13 10:47:17 -07:00
Kohsuke Kawaguchi 02f6e4f8d9 Updating to Jetty 8 to get full stack trace in case of an error. 2012-06-11 17:04:42 -07:00
Kohsuke Kawaguchi bc0b850510 Merge branch 'pull-434.2' 2012-06-11 15:23:28 -07:00
Kohsuke Kawaguchi 72fbaba275 Refactored existing static list into CoreEnvironmentContributor. 2012-06-11 15:21:57 -07:00
Kohsuke Kawaguchi dea9588415 the trunk is toward 1.471-SNAPSHOT 2012-06-11 10:34:20 -07:00
Kohsuke Kawaguchi 78362282bf I botched 1.469 release, so skipping that and moving on to 1.470
This is a precautionary measure against those Maven proxies that might
have already cached 1.469 binaries while they were out.
2012-06-11 10:04:37 -07:00
Kohsuke Kawaguchi bacba61f4b merged back the RC branch
Conflicts:
	war/pom.xml
2012-06-11 10:01:56 -07:00
Kohsuke Kawaguchi 436df00528 [maven-release-plugin] prepare for next development iteration 2012-06-11 09:11:48 -07:00
Kohsuke Kawaguchi 5f48c2d91f [maven-release-plugin] prepare release jenkins-1.468 2012-06-11 09:11:47 -07:00
Kohsuke Kawaguchi 195e900cd1 Fixed a classloader problem 2012-06-11 08:45:41 -07:00
Nicolas De Loof 5ea1f5e6f4 SNAPSHOT plugins have been released 2012-06-07 11:47:37 +02:00
Kohsuke Kawaguchi 6b1980e817 Released these plugins in preparation of a release 2012-06-05 21:05:15 -07:00
Kohsuke Kawaguchi 6ab4691eff Merge remote-tracking branch 'origin/master' 2012-06-05 20:31:10 -07:00
Kohsuke Kawaguchi 372e8cb650 the trunk is toward 1.469-SNAPSHOT 2012-06-05 20:30:58 -07:00
Kohsuke Kawaguchi 17317bb4ca supported more complex relative path 2012-06-05 18:16:27 -07:00
Kohsuke Kawaguchi d72a9a2bc5 fixed a bug in the neighbor field discovery.
Previously, the code was "find the nearby element of the expected @name,
then make sure it has gotten the right parent."

So if the structure is like:

  {/* outer object */
      name: "parent-name",  /* A */

      child1: {/* inner object */
        name: "child-name" /* B */
      },

      child2: {/* inner object */
        name: "child-name" /* C */
      }
  }

... and if we are looking for "../name", it finds B, and it gets
rejected, so we won't be able to find A, which is what we are supposed
to find.

With this change, we keep trying until we find the right one,
so the above case will correctly return A.
2012-06-05 18:16:27 -07:00
Vincent Latombe ec5812c82e In ListView, wrap the list of jobs inside a scrollable div.
When managing instances with lots of jobs, the size of the view
configuration screen becomes huge because there is one line per job on
the instance.
2012-06-05 15:55:37 -07:00
Kohsuke Kawaguchi fe0c718e39 Integrated the new animation GIF images that have more transparent background.
Going beyond this requires CSS animation.
2012-05-30 17:49:56 -07:00
Kohsuke Kawaguchi 48c173d186 Improved the image generation script.
In particular, so that flashing animation gif uses transparent
background where possible.
2012-05-30 17:48:37 -07:00
Kohsuke Kawaguchi f9a8630f1c call layout updater when we touch DOM 2012-05-30 16:50:03 -07:00
Kohsuke Kawaguchi 32cba8f245 One more file to be removed for LDAP 2012-05-30 10:40:02 -07:00
Kohsuke Kawaguchi 5cc2a111fc Splitting off LDAP and PAM auth plugin. 2012-05-30 10:33:40 -07:00
Kohsuke Kawaguchi 4cd8478f7e Merge remote-tracking branch 'origin/master' 2012-05-29 19:26:57 -07:00
Kohsuke Kawaguchi 359aca37c0 the trunk is toward 1.468-SNAPSHOT 2012-05-29 19:26:43 -07:00
Kohsuke Kawaguchi 903bf089b7 External monitor job type is moved to a plugin.
The actual release needs to happen in a lock step, as the new plugin
needs to require yet-to-be-released version of the core. So for the time
being it's a snapshot dependency, deployed in the snapshot repository.
2012-05-29 17:48:35 -07:00