Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WiP] New Job Name Validation #3

Open
wants to merge 154 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
7a899d4
Avoid log clutter
olivergondza May 3, 2016
f21fe54
[FIXED JENKINS-33780] Introduce NodeListener
olivergondza May 2, 2016
3ef19cc
[JENKINS-33780] Catch all throwables from implementations
olivergondza May 6, 2016
1e746f6
[FIXED JENKINS-34883] the legacy default update site can be different…
varmenise May 19, 2016
1e80c68
[FIXED JENKINS-34883] use an ovverridable createDefaultUpdateSite method
varmenise May 20, 2016
fd7e6c6
[FIXED JENKINS-34883] make method protected
varmenise May 20, 2016
ed80c35
Improved new job name validation
samatdav May 22, 2016
d2dff11
delete space
samatdav May 22, 2016
7319b67
JENKINS-34708 - UpdateCenter.EnableJob not properly setting status (#…
kzantow May 22, 2016
48d5fa3
removed focus and unneccesary client side check
samatdav May 22, 2016
7ffceba
new line at the end
samatdav May 22, 2016
ed2471a
[maven-release-plugin] prepare release jenkins-2.6
kohsuke May 23, 2016
f65f157
[maven-release-plugin] prepare for next development iteration
kohsuke May 23, 2016
77d7993
updated changelog for release
kohsuke May 23, 2016
b0fd310
Fix unclosed <code> tag in the 2.6 changelog. (#2366)
orrc May 23, 2016
02e4bc5
Merge pull request #2363 from varmenise/JENKINS-34883
varmenise May 23, 2016
1fe9255
[JENKINS-35020] Fixed some JSHint errors (#2368)
recena May 25, 2016
50c7049
[FIX JENKINS-33947] - Fix keyboard navigation in setup wizard (#2294)
kzantow May 27, 2016
a3ddc89
[JENKINS-34751] use patched version of Groovy 2.4.6 (#2369)
daspilker May 28, 2016
2001154
[JENKINS-34438] - Activate JSHint through js-builder (#2367)
recena May 28, 2016
fae8ec6
Update russian translations of nodes help pages to match latest Engli…
madhead May 28, 2016
a2e7661
Fixes Jenkins build error
damianszczepanik May 28, 2016
654569e
Merge pull request #2380 from damianszczepanik/build-error
damianszczepanik May 28, 2016
74a9f79
Updated Polish translations
damianszczepanik May 28, 2016
dbdb412
Merge pull request #2382 from damianszczepanik/translation-pl
damianszczepanik May 29, 2016
3403a3e
Add symbol annotation for SystemInfoLink (#2375)
kamilszymanski May 29, 2016
0ae6c42
[JENKINS-35190] Do not even consult PingFailureAnalyzer if ping fails…
jglick May 29, 2016
15ce24a
[JENKINS-35198] - DelegatingComputerLauncher should accept child clas…
peppelan May 29, 2016
155f850
[FIXED JENKINS-35201] - NodeJS could not be built on Win x64 (#2381)
damianszczepanik May 29, 2016
bd93907
Noting #2368, #2294, #2381, #2384, #2377, #2375, #2380, #2367, #2369
oleg-nenashev May 29, 2016
a82ebdb
sidepanel popup change
samatdav May 29, 2016
6e2a04a
comment fix
samatdav May 29, 2016
82621f1
[maven-release-plugin] prepare release jenkins-2.7
kohsuke May 29, 2016
0af7cab
[maven-release-plugin] prepare for next development iteration
kohsuke May 29, 2016
2363534
updated changelog for release
kohsuke May 29, 2016
7fbf7c1
State label name as well in order to disambiguate when used from Form…
olivergondza May 30, 2016
d35c7de
[JENKINS-35178] Fix close button in Safari (#2378)
recena May 31, 2016
1026048
dirty popup with library
samatdav Jun 1, 2016
0ac3a27
optimize png images losslessly using zopflipng (#2379)
PeterDaveHello Jun 2, 2016
61be0cd
Lithuanian translation update (#2359)
tomass Jun 2, 2016
723dfca
[FIXED JENKINS-34881] - Handle pre-configured security settings for n…
kzantow Jun 2, 2016
967fe84
Update windows slave installer module from 1.5.1 to 1.6 (#2386)
kohsuke Jun 2, 2016
1b2711c
[JENKINS-35206] - Make the InstallState object deserialization robust…
oleg-nenashev Jun 2, 2016
81e00cc
[FIXED JENKINS-31915] Proxy settings in plugins page are ignored (#1955)
escoem Jun 2, 2016
5485cf9
Removed code duplication
kohsuke Jun 2, 2016
1444ee6
Merge pull request #2314 from olivergondza/node-listener
olivergondza Jun 3, 2016
7a3e43c
Noting #2314
olivergondza Jun 3, 2016
28eba13
Removed unnecessary st:include tags
samatdav Jun 3, 2016
a180783
remove st:include
samatdav Jun 3, 2016
5416411
[JENKINS-35206] - fix potential NPE due to corrupt Jenkins.InstallSta…
kzantow Jun 3, 2016
c4c3f78
Noting #2378, #2379, #2364, #2387, #1955 and #2385
oleg-nenashev Jun 4, 2016
3c25fbc
Copy-editing of the current changelog entries
oleg-nenashev Jun 4, 2016
8bb9287
Noting #2367, which was missing in 2.6
oleg-nenashev Jun 4, 2016
64f9f78
[maven-release-plugin] prepare release jenkins-2.8
kohsuke Jun 6, 2016
91d1977
[maven-release-plugin] prepare for next development iteration
kohsuke Jun 6, 2016
f5f9d83
updated changelog for release
kohsuke Jun 6, 2016
0bf1844
Fix the link formatting in the 2.8 changelog
oleg-nenashev Jun 6, 2016
e83463d
Merge pull request #2389 from jenkinsci/queue-contains
kohsuke Jun 6, 2016
a6a7f9f
This appears in javadoc
kohsuke Jun 6, 2016
405c86a
Typo
kohsuke Jun 6, 2016
53f8974
[FIXED JENKINS-35402] Make it easier for update sites to tweak the In…
stephenc Jun 6, 2016
310c952
[JENKINS-34923]
ndeloof Jun 7, 2016
9657629
[FIX JENKINS-35381] Restrict ResourceBundleUtil (#2393)
daniel-beck Jun 7, 2016
f1dfc72
Merge pull request #2394 from stephenc/custome-installation-job
stephenc Jun 7, 2016
96a7828
updated Groovy to 2.4.7
daspilker Jun 7, 2016
5ac0b8f
Added newJob properties to sidepanel properties to fix labels
samatdav Jun 7, 2016
9ec8186
uncomment popup
samatdav Jun 7, 2016
583bb9a
romoved Bootstrap from newJob
samatdav Jun 7, 2016
42b7b86
romoved unnecessary popup jelly
samatdav Jun 7, 2016
ed6d337
romoved unnecessary popup jelly
samatdav Jun 7, 2016
c28423c
changed popup.css
samatdav Jun 7, 2016
057791c
Merge pull request #2399 from daspilker/JENKINS-34751
olivergondza Jun 8, 2016
96af85a
put remodal popup styles to remodal.css
samatdav Jun 9, 2016
52fb079
added remodal.css
samatdav Jun 9, 2016
97a3f71
some obvious javadoc because some of us feel method names are not enough
ndeloof Jun 9, 2016
ceb36b5
Merge pull request #2395 from ndeloof/one-shot-6
ndeloof Jun 9, 2016
0c00204
moved my rule to addform.less
samatdav Jun 10, 2016
54dd8a9
moved popup from sidepanel.jelly to popup.jelly
samatdav Jun 10, 2016
d33df0f
[JENKINS-35098] Disable AutoBrowserHolder by default to improve the c…
jglick Jun 10, 2016
01db7d3
[FIXED JENKINS-35641] - Always send usage statistics over HTTPs to th…
Jun 10, 2016
c718516
Update remoting to 2.60 (#2403)
oleg-nenashev Jun 11, 2016
a40eec0
Noting #2393, #2394, #2399, #2395, #2371, #2398, #2403
oleg-nenashev Jun 12, 2016
2845f00
Make text gender neutral (#2405)
bwalding Jun 12, 2016
e710ae1
changed the look of new job creation
samatdav Jun 12, 2016
cbe0ee5
[maven-release-plugin] prepare release jenkins-2.9
kohsuke Jun 13, 2016
f30b01f
[maven-release-plugin] prepare for next development iteration
kohsuke Jun 13, 2016
00fc80f
updated changelog for release
kohsuke Jun 13, 2016
c93527a
Fix links to JIRA
daniel-beck Jun 14, 2016
4a3f75a
Revert "Improved new job name validation"
samatdav Jun 14, 2016
bfe2266
Revert "delete space"
samatdav Jun 14, 2016
e85ab7f
commiting changes
samatdav Jun 14, 2016
afe6449
Revert "Revert "Improved new job name validation""
samatdav Jun 14, 2016
9921a88
commit files
samatdav Jun 14, 2016
7a4d727
removed UI changes
samatdav Jun 14, 2016
200a0be
[JENKINS-33600] - User#isIdOrFullnameAllowed() should be tolerant aga…
oleg-nenashev Jun 16, 2016
8f7cad0
Better exception message if a SecurityRealm doesn't respect the API c…
Jun 16, 2016
6630aaa
moved properties and removed name validation change
samatdav Jun 16, 2016
b24290f
fixed mistakes
samatdav Jun 16, 2016
6229370
removed task creation on new page
samatdav Jun 16, 2016
f1360af
check on keyup
samatdav Jun 16, 2016
ef26a35
Add compilation support for 32 bits linux - node.js fix (#2414)
superboum Jun 19, 2016
f49ca14
Noting #2414, #2407 and #2406
oleg-nenashev Jun 19, 2016
c51c7e3
[maven-release-plugin] prepare release jenkins-2.10
kohsuke Jun 20, 2016
d4cb212
[maven-release-plugin] prepare for next development iteration
kohsuke Jun 20, 2016
1ea03a3
updated changelog for release
kohsuke Jun 20, 2016
5a312e3
removed popup
samatdav Jun 20, 2016
f28df01
removed popup fix
samatdav Jun 20, 2016
74ba052
different handeling of keyup and blur
samatdav Jun 20, 2016
4ac67a4
[FIXED JENKINS-36123] Add an extension point that allows plugins to v…
stephenc Jun 21, 2016
5a2a265
[JENKINS-36123] Address review comments from James Nord
stephenc Jun 22, 2016
356e926
[JENKINS-36123] Refactor new extension point name
stephenc Jun 22, 2016
29c98be
[FIXED JENKINS-35981] Allow Setup wizard to work on Tomcat 8 (#2411)
aldaris Jun 23, 2016
5736ee1
Merge pull request #2418 from stephenc/jenkins-36123
stephenc Jun 23, 2016
44cde1e
Noting merge of JENKINS-36123
stephenc Jun 23, 2016
61fb7df
[maven-release-plugin] prepare release jenkins-2.11
kohsuke Jun 26, 2016
bb3b2b0
[maven-release-plugin] prepare for next development iteration
kohsuke Jun 26, 2016
533156c
updated changelog for release
kohsuke Jun 26, 2016
53adb02
[FIXED JENKINS-36280] Enable DescriptorVisibilityFilter for Slave's C…
stephenc Jun 28, 2016
5b4dbb3
Make BulkChange auto-closeable
kohsuke Jun 28, 2016
b9e616f
[JENKINS-36280] Address review comments
stephenc Jun 29, 2016
61f0455
[FIXED JENKINS-36277] Check that process working dir exists (#2424)
vjuranek Jun 29, 2016
1e170d4
[JENKINS-32027] Avoiding to refresh codemirror through the layoutUpd…
Jun 29, 2016
804a571
Tests did not match naming pattern so were never being executed
stephenc Jun 29, 2016
cdf6906
Update BUILD_TAG description to mention the replacement of slashes wi…
tn-osimis Jun 29, 2016
71ea0b3
[JENKINS-36280] Add some tests
stephenc Jun 29, 2016
a24adb7
Merge pull request #2429 from stephenc/enable-tests
stephenc Jun 29, 2016
4ab2b42
Merge branch 'master' into jenkins-36280
stephenc Jun 29, 2016
b7a7c81
Stray import.
jglick Jun 29, 2016
fa1c03b
[JENKINS-21486] Fixing optional dependency version resolution. (#2421)
mslusarczyk Jun 29, 2016
213363d
Merge pull request #2428 from jenkinsci/closeable-bulkchange
kohsuke Jun 29, 2016
6d29dd4
[FIXED JENKINS-36232] NPE during SCM polling (#2425)
ThomasGP Jun 30, 2016
1d176d1
[JENKINS-35906] Ensure that SCMDescriptor.newInstance overrides are h…
jglick Jul 1, 2016
5a0d7ec
Merge pull request #2427 from stephenc/jenkins-36280
stephenc Jul 1, 2016
6561a9c
Noting merge of JENKINS-36280
stephenc Jul 1, 2016
5fdf33b
[JENKINS-20187] - Handle growing files when creating a tar file. (#2419)
alvarolobato Jul 2, 2016
e66e719
[FIXED JENKINS-25416][JENKINS-28790] Do not inject build variables in…
olivergondza Jul 2, 2016
ab4b42b
Noting #2417, #2428, #2424, #2390, #2421, #2425, #2419, #1976
oleg-nenashev Jul 3, 2016
0b8febb
[JENKINS-25416][JENKINS-28790] - Fix the parametersReferencedFromProp…
oleg-nenashev Jul 5, 2016
b69a423
[maven-release-plugin] prepare release jenkins-2.12
kohsuke Jul 5, 2016
17cc923
[maven-release-plugin] prepare for next development iteration
kohsuke Jul 5, 2016
f9efe65
updated changelog for release
kohsuke Jul 5, 2016
d00d5b1
Annotate DescriptorList methods and add Javadocs (#2434)
oleg-nenashev Jul 8, 2016
fe7b827
Merge remote-tracking branch 'upstream/master' into new-job-name-vali…
samatdav Jul 8, 2016
43bf48f
fix JSHint errors
samatdav Jul 8, 2016
7a00678
cleanup
samatdav Jul 17, 2016
ab715c2
added single quote
samatdav Jul 17, 2016
5ccc6f8
separated button enabling and focus
samatdav Jul 27, 2016
358ba36
cleanup
samatdav Jul 27, 2016
326c1f4
Tom's suggestions
samatdav Aug 7, 2016
d71406b
moved invalid warning
samatdav Aug 11, 2016
d115585
red border
samatdav Aug 12, 2016
66b15f5
red background
samatdav Aug 15, 2016
5889afe
class toggle
samatdav Aug 16, 2016
d9b4d74
renamed class
samatdav Aug 17, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
164 changes: 162 additions & 2 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,164 @@

<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
</ul>
</div><!--=TRUNK-END=-->
<h3><a name=v2.12>What's new in 2.12</a> (2016/07/05)</h3>
<ul class=image>
<li class=rfe>
Enable the <code>DescriptorVisibilityFilter</code>s for ComputerLauncher, RetentionStrategy and NodeProperty.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36280">Issue 36280</a>)
<li class=rfe>
Before starting a process, ensure that its working directory exists.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36277">Issue 36277</a>)
<li class=bug>
Prevent <code>NullPointerException</code> during SCM polling if <code>SCMDecisionHandler</code> returns <code>null</code> veto.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36232">Issue 36232</a>, regression in 2.11)
<li class=bug>
Ensure that <code>SCMDescriptor.newInstance</code> overrides are honored when creating new SCM entries.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36043">Issue 36043</a>,
<a href="https://issues.jenkins-ci.org/browse/JENKINS-35906">Issue 35906</a>
, regression in 2.10)
<li class=bug>
Performance: Improve configuration page load times by removing the CodeMirror reloading cycle.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-32027">Issue 32027</a>)
<li class=bug>
Fix optional plugin dependency version resolution.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-21486">Issue 21486</a>, previous fix was reverted in Jenkins 2)
<li class=bug>
When creating a tar file, ensure that the final size does not exceed the value
in header in the case of growing files.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-20187">Issue 20187</a>)
<li class=bug>
Do not inject build variables into Maven process by default for new projects.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-25416">Issue 25416</a>,
<a href="https://issues.jenkins-ci.org/browse/JENKINS-28790">Issue 28790</a>)
<li class=rfe>
Update <code>BUILD_TAG</code> environment variable description to mention the replacement of slashes with dashes.
(<a href="https://github.com/jenkinsci/jenkins/pull/2417">PR #2417</a>)
<li class=rfe>
Internal API: Make <code>BulkChange</code> auto-closeable.
(<a href="https://github.com/jenkinsci/jenkins/pull/2428">PR #2428</a>)
</ul>
<h3><a name=v2.11>What's new in 2.11</a> (2016/06/26)</h3>
<ul class=image>
<li class=rfe>
Provide an extension point for SCM decisions such as whether to poll a specific job's backing
repository for changes.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36123">Issue 36123</a>)
</ul>
<h3><a name=v2.10>What's new in 2.10</a> (2016/06/19)</h3>
<ul class=image>
<li class=rfe>
Better exception message if a <code>SecurityRealm</code> returns null when loading a user.
(<a href="https://github.com/jenkinsci/jenkins/pull/2407">PR #2407</a>)
<li class=bug>
Prevent <code>NullPointerException</code> in user registration if user ID is not specified.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-33600">Issue 33600</a>)
<li class=bug>
Internal: It was impossible to build Jenkins on 32-bit Linux machine.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-36052">Issue 36052, regression from 2.0</a>)
</ul>
<h3><a name=v2.9>What's new in 2.9</a> (2016/06/13)</h3>
<ul class=image>
<li class=bug>
Always send usage statistics over HTTPs to the new usage.jenkins.io hostname.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35641">Issue 35641</a>)
<li class=bug>
Performance: Disable AutoBrowserHolder by default to improve the changelog rendering performance.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35098">Issue 35098</a>)
<li class=bug>
Remoting 2.60: Make the channel reader tolerant against Socket timeouts.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-22722">Issue 22722</a>)
<li class=bug>
Remoting 2.60: Proper handling of the <code>no_proxy</code> environment variable.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-32326">Issue 32326</a>)
<li class=bug>
Remoting 2.60: Do not invoke PingFailureAnalyzer for agent=>master ping failures.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35190">Issue 35190</a>)
<li class=bug>
Remoting 2.60: <code>hudson.Remoting.Engine#waitForServerToBack</code> now uses credentials for connection.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-31256">Issue 31256</a>)
<li class=bug>
Remoting 2.60: Fix potential file handle leaks during the build agent (FKA slave) startup.
<a href="https://issues.jenkins-ci.org/browse/JENKINS-35190">Issue 35190</a>)
<li class=rfe>
Internal: Upgrade Groovy to 2.4.7 to finalize the fix in Jenkins 2.7.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34751">Issue 34751</a>)
<li class=rfe>
API: Allow delegating <code>TaskListener</code> creation to build agent implementations.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34923">Issue 34923</a>)
<li class=rfe>
API: Restrict external usages of </code>jenkins.util.ResourceBundleUtil</code>.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35381">Issue 35381</a>)
<li class=rfe>
API: Make it easier for <code>UpdateSite</code>s to tweak the </code>InstallationJob</code>.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35402">Issue 35402</a>)
</ul>
<h3><a name=v2.8>What's new in 2.8</a> (2016/06/05)</h3>
<ul class=image>
<li class=bug>
Explicitly declare compatibility of Windows build agent service with .NET Framework 4.
(<a href="https://github.com/jenkinsci/jenkins/pull/2386">PR #2386</a>)
<li class=rfe>
API: Introduce new listener extension point for slave creation/update/deletion.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-33780">Issue 33780</a>)
<li class=rfe>
Lossless optimization sizes of PNG images in Jenkins.
(<a href="https://github.com/jenkinsci/jenkins/pull/2379">PR #2379</a>)
<li class=bug>
Fix the repeatable item delete button layout in Safari.
Addresses Build Steps and other such configuration items.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35178">Issue 35178</a>)
<li class=bug>
Installation Wizard: Do not offer creating new admin user if the security is preconfigured.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34881">Issue 34881</a>)
<li class=bug>
Prevent <code>NullPointerException</code> on startup after update from Jenkins 2.5.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35206">Issue 35206</a>)
<li class=bug>
Honor noProxy settings from "Manage Jenkins > Manage Plugins > Advanced".
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-31915">Issue 31915</a>)
<li class=rfe>
Add <a href="http://hc.apache.org/httpclient-3.x/authentication.html#NTLM">NTLM support</a>
to the proxy validation logic.
(<a href="https://github.com/jenkinsci/jenkins/pull/1955">PR #1955</a>)
</ul>
<h3><a name=v2.7>What's new in 2.7</a> (2016/05/29)</h3>
<ul class=image>

<li class="bug">
Prevent stack overflow when using classes with complex generic type arguments
(e.g. <code>hudson.model.Run</code> or <code>hudson.model.Job</code>).
Regression in Groovy 2.4,
see <a href="https://issues.apache.org/jira/browse/GROOVY-7826">GROOVY-7826</a> for more info.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34751">issue 34751</a>)
<li class="bug">
Do not invoke <code>PingFailureAnalyzer</code> for agent=>master ping failures.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35190">issue 35190</a>)
<li class="bug">
Fix keyboard navigation in setup wizard.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-33947">issue 33947</a>)
<li class="bug">
Cleanup of Javascript issues discovered by the JSHint static analyis tool.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35020">issue 35020</a>)
<li class="bug">
<code>DelegatingComputerLauncher</code> now accepts child classes in its hooks
(pre-offline, pre-connect, etc.).
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35198">issue 35198</a>)
<li class="rfe">
Internal: Activate JSHint in Jenkins js-builder component during the core build.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34438">issue 34438</a>)
<li class="rfe">
Internal: Add symbol annotation for <code>SystemInfoLink</code>.
(<a href="https://github.com/jenkinsci/jenkins/pull/2375">PR #2375</a>)
<li class="bug">
Internal: NodeJS build was malfunctional on Win x64.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-35201">issue 35201</a>)
</ul>
<h3><a name=v2.6>What's new in 2.6</a> (2016/05/22)</h3>
<ul class=image>
<li class="major rfe">
Adapt the Setup Wizard GUI to provide a similar user experience when upgrading Jenkins.
Expand All @@ -74,7 +232,7 @@
(<a href="https://github.com/jenkinsci/jenkins/pull/2353">PR 2353</a>)
<li class="rfe">
Added Symbol annotations for
<code>ParametersDefinition</code> and <code>BuildDiscarder/code> properties.
<code>ParametersDefinition</code> and <code>BuildDiscarder</code> properties.
(<a href="https://github.com/jenkinsci/jenkins/pull/2358">PR 2358</a>)
<li class="rfe">
Extended the <code>online-node</code> CLI command for accepting multiple agents.
Expand All @@ -94,11 +252,13 @@
<li class="bug">
Do not show warnings abot a missing Tool Installer if it is present in at least one Update Site.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34880">issue 34880</a>)
<li class="bug">
Prevent hanging of the installation wizard due to the plugin status update issue.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-34708">issue 34708</a>)
<li class="rfe">
Internal: CLI command <code>connect-node</code> was extracted from the core to CLI.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-31417">issue 31417</a>)
</ul>
</div><!--=TRUNK-END=-->
<h3><a name=v2.5>What's new in 2.5</a> (2016/05/16)</h3>
<ul class=image>
<li class="major bug">
Expand Down
2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>pom</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.13-SNAPSHOT</version>
</parent>

<artifactId>cli</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ THE SOFTWARE.
<parent>
<groupId>org.jenkins-ci.main</groupId>
<artifactId>pom</artifactId>
<version>2.6-SNAPSHOT</version>
<version>2.13-SNAPSHOT</version>
</parent>

<artifactId>jenkins-core</artifactId>
Expand All @@ -41,7 +41,7 @@ THE SOFTWARE.
<staplerFork>true</staplerFork>
<stapler.version>1.243</stapler.version>
<spring.version>2.5.6.SEC03</spring.version>
<groovy.version>2.4.6</groovy.version>
<groovy.version>2.4.7</groovy.version>
</properties>

<dependencies>
Expand Down
28 changes: 11 additions & 17 deletions core/src/main/java/hudson/BulkChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import hudson.model.Saveable;

import java.io.Closeable;
import java.io.IOException;

/**
Expand All @@ -35,28 +36,13 @@
* The usage of {@link BulkChange} needs to follow a specific closure-like pattern, namely:
*
* <pre>
* BulkChange bc = new BulkChange(someObject);
* try {
* try (BulkChange bc = new BulkChange(someObject)) {
* ... make changes to 'someObject'
* } finally {
* bc.commit();
* }
* </pre>
*
* <p>
* ... or if you'd like to avoid saving when something bad happens:
*
* <pre>
* BulkChange bc = new BulkChange(someObject);
* try {
* ... make changes to 'someObject'
* bc.commit();
* } finally {
* bc.abort();
* }
* </pre>
*
* <p>
* Use of this method is optional. If {@link BulkChange} is not used, individual mutator
* will perform the save operation, and things will just run somewhat slower.
*
Expand All @@ -82,7 +68,7 @@
* @author Kohsuke Kawaguchi
* @since 1.249
*/
public class BulkChange {
public class BulkChange implements Closeable {
private final Saveable saveable;
public final Exception allocator;
private final BulkChange parent;
Expand Down Expand Up @@ -112,6 +98,14 @@ public void commit() throws IOException {
saveable.save();
}

/**
* Alias for {@link #abort()} to make {@link BulkChange} auto-closeable.
*/
@Override
public void close() {
abort();
}

/**
* Exits the scope of {@link BulkChange} without saving the changes.
*
Expand Down
23 changes: 23 additions & 0 deletions core/src/main/java/hudson/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/
package hudson;

import hudson.model.Slave;
import jenkins.util.SystemProperties;
import hudson.cli.CLICommand;
import hudson.console.ConsoleAnnotationDescriptor;
Expand Down Expand Up @@ -158,6 +159,7 @@
import javax.annotation.CheckForNull;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.accmod.restrictions.DoNotUse;

/**
* Utility functions used in views.
Expand Down Expand Up @@ -889,10 +891,24 @@ public static List<SCMDescriptor<?>> getSCMDescriptors(AbstractProject<?,?> proj
return SCM._for(project);
}

/**
* @since 2.12
* @deprecated replaced by {@link Slave.SlaveDescriptor#computerLauncherDescriptors(Slave)}
*/
@Deprecated
@Restricted(DoNotUse.class)
@RestrictedSince("2.12")
public static List<Descriptor<ComputerLauncher>> getComputerLauncherDescriptors() {
return Jenkins.getInstance().<ComputerLauncher,Descriptor<ComputerLauncher>>getDescriptorList(ComputerLauncher.class);
}

/**
* @since 2.12
* @deprecated replaced by {@link Slave.SlaveDescriptor#retentionStrategyDescriptors(Slave)}
*/
@Deprecated
@Restricted(DoNotUse.class)
@RestrictedSince("2.12")
public static List<Descriptor<RetentionStrategy<?>>> getRetentionStrategyDescriptors() {
return RetentionStrategy.all();
}
Expand All @@ -913,6 +929,13 @@ public static List<Descriptor<MyViewsTabBar>> getMyViewsTabBarDescriptors() {
return MyViewsTabBar.all();
}

/**
* @deprecated replaced by {@link Slave.SlaveDescriptor#nodePropertyDescriptors(Slave)}
* @since 2.12
*/
@Deprecated
@Restricted(DoNotUse.class)
@RestrictedSince("2.12")
public static List<NodePropertyDescriptor> getNodePropertyDescriptors(Class<? extends Node> clazz) {
List<NodePropertyDescriptor> result = new ArrayList<NodePropertyDescriptor>();
Collection<NodePropertyDescriptor> list = (Collection) Jenkins.getInstance().getDescriptorList(NodeProperty.class);
Expand Down
11 changes: 10 additions & 1 deletion core/src/main/java/hudson/PluginManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import hudson.model.UpdateSite;
import hudson.model.UpdateCenter.DownloadJob;
import hudson.model.UpdateCenter.InstallationJob;
import hudson.security.ACL;
import hudson.security.Permission;
import hudson.security.PermissionScope;
import hudson.util.CyclicGraphDetector;
Expand All @@ -61,6 +62,8 @@

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.acegisecurity.Authentication;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
Expand Down Expand Up @@ -1319,6 +1322,7 @@ private List<Future<UpdateCenter.UpdateCenterJob>> install(@Nonnull Collection<S
private void trackInitialPluginInstall(@Nonnull final List<Future<UpdateCenter.UpdateCenterJob>> installJobs) {
final Jenkins jenkins = Jenkins.getInstance();
final UpdateCenter updateCenter = jenkins.getUpdateCenter();
final Authentication currentAuth = Jenkins.getAuthentication();

if (!Jenkins.getInstance().getInstallState().isSetupComplete()) {
jenkins.setInstallState(InstallState.INITIAL_PLUGINS_INSTALLING);
Expand Down Expand Up @@ -1348,7 +1352,12 @@ public void run() {
}
updateCenter.persistInstallStatus();
if(!failures) {
InstallUtil.proceedToNextStateFrom(InstallState.INITIAL_PLUGINS_INSTALLING);
ACL.impersonate(currentAuth, new Runnable() {
@Override
public void run() {
InstallUtil.proceedToNextStateFrom(InstallState.INITIAL_PLUGINS_INSTALLING);
}
});
}
}
}.start();
Expand Down
11 changes: 8 additions & 3 deletions core/src/main/java/hudson/PluginWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,22 @@ public Dependency(String s) {
if(idx==-1)
throw new IllegalArgumentException("Illegal dependency specifier "+s);
this.shortName = s.substring(0,idx);
this.version = s.substring(idx+1);
String version = s.substring(idx+1);

boolean isOptional = false;
String[] osgiProperties = s.split(";");
String[] osgiProperties = version.split("[;]");
for (int i = 1; i < osgiProperties.length; i++) {
String osgiProperty = osgiProperties[i].trim();
if (osgiProperty.equalsIgnoreCase("resolution:=optional")) {
isOptional = true;
}
}
this.optional = isOptional;
if (isOptional) {
this.version = osgiProperties[0];
} else {
this.version = version;
}
}

@Override
Expand Down