1. 08 3月, 2016 2 次提交
    • S
      Noting that there is a potentially valid argument for allowing this method to... · 6be18080
      Stephen Connolly 提交于
      Noting that there is a potentially valid argument for allowing this method to work without the singleton...
      
      - But the type of tests here would be very restricted in what they could safely do anyway, so they would largely be restricted to verifying data migration during xml loading
      6be18080
    • S
      Jenkins.getInstance() should be non-null · bb7c8fce
      Stephen Connolly 提交于
      - It is never too late to do the right thing.
      - The vast majority of usages of `Jenkins.getInstance()` in core currently assume that its return value is non-null
      - This commit changes those that are written to correctly check for non-null values will call `Jenkins.getInstanceOrNull()`
      - We deprecate the `Jenkins.getActiveInstance()` madness
      - I checked with @kohsuke who said not to bother with a PR and just commit this strongly opinionated change direct to master as a PR will just degrade into a bikeshedding.
      bb7c8fce
  2. 14 11月, 2015 1 次提交
  3. 02 11月, 2015 1 次提交
  4. 28 10月, 2015 1 次提交
  5. 09 10月, 2015 1 次提交
    • C
      [FIXED JENKINS-30502] trim job name upon rename · 89ce85df
      Christopher Simons 提交于
      If a job is renamed to a string with trailing whitespace, exceptions are
      thrown as the application attempts to rename the job directory in the
      file system, and the job can be neither deleted nor renamed again
      through the UI. This problem occurs only when renaming a job, and not
      when initially creating a job, because job names are trimmed when first
      created.  This change trims the job name for rename operations as well,
      so that the name-setting behavior is consistent across create/update
      operations and inadvertent leading/trailing whitespace is removed before
      it can cause problems.
      89ce85df
  6. 02 7月, 2015 1 次提交
  7. 20 4月, 2015 1 次提交
  8. 16 12月, 2014 2 次提交
  9. 07 11月, 2014 1 次提交
  10. 26 9月, 2014 1 次提交
    • J
      Simplifying JSONException handling in doConfigSubmit to use standard (?) error reporting. · c1e8b150
      Jesse Glick 提交于
      Also sending the exception to the log, which is where plugin developers expect to see it.
      (This is also necessary for the exception to be visible say from configRoundtrip in a functional test.
      Otherwise you just see a FailingHttpStatusCodeException due to the 400 error code, with no details.)
      Might actually suffice to just throw a ServletException wrapping the exception up the chain,
      letting Stapler or the container handle it, but this change is more conservative.
      c1e8b150
  11. 24 9月, 2014 1 次提交
  12. 28 8月, 2014 1 次提交
  13. 22 8月, 2014 1 次提交
  14. 13 8月, 2014 1 次提交
  15. 30 7月, 2014 1 次提交
  16. 22 7月, 2014 1 次提交
  17. 10 7月, 2014 1 次提交
  18. 15 6月, 2014 1 次提交
  19. 28 5月, 2014 1 次提交
  20. 15 5月, 2014 1 次提交
  21. 25 3月, 2014 1 次提交
    • J
      Null safety during failing tests (BuildTriggerTest.testMavenBuildTrigger in this case). · fa496c7b
      Jesse Glick 提交于
      java.lang.NullPointerException
      	at hudson.model.Job.getBuildDir(Job.java:790)
      	at hudson.model.Run.getRootDir(Run.java:993)
      	at hudson.model.Run.getLogFile(Run.java:1306)
      	at hudson.model.Run.execute(Run.java:1664)
      	at hudson.maven.MavenBuild.access$900(MavenBuild.java:94)
      	at hudson.maven.MavenBuild$ProxyImpl2.close(MavenBuild.java:636)
      	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:106)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:839)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:523)
      	at hudson.model.Run.execute(Run.java:1688)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      java.lang.NullPointerException
      	at hudson.model.BuildStepListener.all(BuildStepListener.java:31)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:739)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:714)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1054)
      	at hudson.model.Run.execute(Run.java:1733)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      fa496c7b
  22. 05 3月, 2014 1 次提交
  23. 01 3月, 2014 1 次提交
  24. 09 1月, 2014 1 次提交
  25. 07 1月, 2014 1 次提交
  26. 24 12月, 2013 1 次提交
  27. 12 12月, 2013 1 次提交
  28. 07 12月, 2013 1 次提交
  29. 25 8月, 2013 1 次提交
  30. 02 8月, 2013 1 次提交
    • K
      [FIXED JENKINS-19042] · 6588f429
      Kohsuke Kawaguchi 提交于
      Added a new overloaded version that works on a project.
      
      Updated CoreEnvironmentContributor accordingly.
      6588f429
  31. 11 7月, 2013 2 次提交
  32. 06 7月, 2013 1 次提交
  33. 03 7月, 2013 1 次提交
    • S
      [FIXES JENKINS-2494] Restore correct behaviour · 503c3bd2
      Stephen Connolly 提交于
      - Fixes a regression in core where the display name clear on copy was triggering a save
      - More than one way to do this, could also have used the marker interface approach
        This route seems slightly less fragile, though people could still add ItemListeners
        with order == -Double.MAX_VALUE which would then introduce intdeterminism.
        A marker interface would remove that indeterminism as the onCopyComplete method would
        be only called on the Job as the last method... but it could be hard to
        ensure that all ItemGroupMixin's respect the calling of onCopyComplete contract
        hence this approach seems better to me for that reason
      503c3bd2
  34. 31 5月, 2013 1 次提交
  35. 17 5月, 2013 1 次提交
  36. 14 3月, 2013 1 次提交
    • K
      [FIXED JENKINS-15583] · fe9f6760
      Kohsuke Kawaguchi 提交于
      Report 100 recent builds in the JSON API, including in-progress builds.
      
      Not reporting all the builds since this would nullify the lazy loading
      effect. Will introduce a pagenation API that supports retrieval.
      fe9f6760
  37. 13 3月, 2013 1 次提交
    • K
      [JENKINS-16089] Revising 88feabb4 · f7c9e810
      Kohsuke Kawaguchi 提交于
      Based on comments from Jesse, revising the fix.
      
      I'm now putting permlinks inside the builds/ directory to avoid the computing hassle involved in the split $JENKINS_HOME.
      
      What we historically had in $JENKINS_HOME/jobs/JOB/lastSuccessfulBuild is also now subsumed by this feature. I initially attempted to create these permalinks in the buidl root directory, but turns out those symlinks aren't the same name as the ID of permalinks, so it doesn't mesh well.
      
      And finally, a test!
      f7c9e810