Skip to content

Commit 896063a

Browse files
authored
JENKINS-64135 Fix plugin on >2.263 (#34)
1 parent 99814a0 commit 896063a

File tree

15 files changed

+526
-178
lines changed

15 files changed

+526
-178
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jenkinsci/release-plugin-developers

.github/release-drafter.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_extends: .github
2+
tag-template: release-$NEXT_MINOR_VERSION

.github/workflows/changelog.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
update_release_draft:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# Drafts your next Release notes as Pull Requests are merged into "master"
13+
- uses: release-drafter/release-drafter@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG-old.md

+214
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
# Changelog
2+
3+
## New versions are on GitHub releases
4+
5+
## Version 2.10.2 (Nov 18, 2018)
6+
7+
- [JENKINS-53994](https://issues.jenkins-ci.org/browse/JENKINS-53994) -
8+
Fix issue with visualization of parameters coming from plugins
9+
10+
## Version 2.10.1 (Mar 13, 2018)
11+
12+
- No user-visible changes
13+
- Developer: Upgrade the plugin to the latest plugin POM
14+
15+
## Version 2.10 (Jan 22, 2018)
16+
17+
- [Fix security
18+
issue](https://jenkins.io/security/advisory/2018-01-22/)
19+
20+
## Version 2.9 (Dec 08, 2017)
21+
22+
- [JENKINS-26895](https://issues.jenkins-ci.org/browse/JENKINS-26895) -
23+
Prevent exception when Dashboard View plugin is not installed
24+
- [PR \#27](https://github.com/jenkinsci/release-plugin/pull/27) -
25+
Update Maven Plugin dependency to 3.0, cleanup other dependencies
26+
27+
## Version 2.8 (June 27, 2017)
28+
29+
- [PR \#25](https://github.com/jenkinsci/release-plugin/pull/25) -
30+
Enable release actions for [Job Generator
31+
Plugin](https://wiki.jenkins.io/display/JENKINS/Job+Generator+Plugin)
32+
33+
## Version 2.7 (Apr 08, 2017)
34+
35+
- [JENKINS-40765](https://issues.jenkins-ci.org/browse/JENKINS-40765) -
36+
Add a new **release()** step for [Pipeline
37+
Plugin](https://wiki.jenkins.io/display/JENKINS/Pipeline+Plugin)
38+
- [PR \#14](https://github.com/jenkinsci/release-plugin/pull/14) -
39+
Enable the plugin for [Ivy
40+
Plugin](https://wiki.jenkins.io/display/JENKINS/Ivy+Plugin)
41+
42+
## Version 2.6.1 (10/13/2016)
43+
44+
- [JENKINS-20797](http://issues.jenkins-ci.org/browse/JENKINS-20797) -
45+
In addition to the fix in 2.6, schedule new release builds with the
46+
actual User Cause widely supported by plugins
47+
48+
## Version 2.6 (09/29/2016)
49+
50+
[Unknown User
51+
(oleg\_nenashev)](https://wiki.jenkins.io/display/~oleg_nenashev) is a
52+
temporary maintainer.
53+
54+
- Core dependency has been updated from 1.481 to 1.609.3 LTS
55+
([justification](https://github.com/jenkinsci/release-plugin/pull/17#r81082784))
56+
- [JENKINS-34996](http://issues.jenkins-ci.org/browse/JENKINS-34996)
57+
Fix the compatibility with Jenkins cores containing the
58+
[SECURITY-170](https://wiki.jenkins-ci.org/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170)
59+
fix (pull request \#17, thanks to [Antonio
60+
Muñiz](https://wiki.jenkins.io/display/~amuniz))
61+
- [JENKINS-11176](http://issues.jenkins-ci.org/browse/JENKINS-11176)
62+
"If the build is a release build" promotion criteria was broken due
63+
to the improper descriptor handling in the plugin (pull request
64+
\#15, thanks to [Allan Burdajewicz](https://github.com/Dohbedoh))
65+
- [JENKINS-28132](http://issues.jenkins-ci.org/browse/JENKINS-28132)
66+
"Release" permission is now implied by Jenkins Administer permission
67+
(pull request \#16, thanks to aprueller)
68+
- [JENKINS-20797](http://issues.jenkins-ci.org/browse/JENKINS-20797)
69+
Recent Releases Portlet should support extraction of users from the
70+
new "triggered by user" cause being used in Jenkins 1.427+ (pull
71+
request \#18)
72+
- [PR \#18](https://github.com/jenkinsci/release-plugin/pull/18)
73+
Recent Releases Portlet should not create new users for non-existent
74+
usernames when rendering the output page (pull request \#18)
75+
- Cleanup of minor issues discovered by FindBugs (pull request \#19)
76+
77+
## Version 2.5.4 (10/26/2015)
78+
79+
- [JENKINS-31159](http://issues.jenkins-ci.org/browse/JENKINS-31159)
80+
Fix postMatrixBuildSteps (Pull request \#13, thanks to Fiouz)
81+
82+
## Version 2.5.3 (4/25/2015)
83+
84+
- [JENKINS-27722](http://issues.jenkins-ci.org/browse/JENKINS-27722)
85+
upgrade to the release plugin has left the plugin broken (Pull
86+
request \#12, thanks to glenritchie)
87+
- Change so that now you can select Publisher and Builders in the
88+
(release) build steps (Pull request \#11, thanks to glenritchie)
89+
- Small translation fix (Pull request \#10, thanks to Batmat)
90+
- Add two custom view job filters "All Release Jobs" and "Release
91+
Jobs" (Pull request \#9, thanks to fritaly)
92+
- Define a new RELEASE permission (Pull request \#8, thanks to
93+
fritaly)
94+
- **BEWARE:** **You need to adapt your permissions so that users
95+
still see the release button**
96+
- Set the description for the parent of a matrix build (Pull request
97+
\#7, thanks to fritaly)
98+
- Add ability to run steps before/after all matrix configurations
99+
100+
## Version 2.4.1 (9/27/2013)
101+
102+
- Don't display release action in matrix configuration
103+
104+
## Version 2.4 (8/04/2013)
105+
106+
- [JENKINS-5079](http://issues.jenkins-ci.org/browse/JENKINS-5079)
107+
Added matrix projects support
108+
109+
## Version 2.3 (9/20/2012)
110+
111+
- [JENKINS-13422](http://issues.jenkins-ci.org/browse/JENKINS-13422)
112+
Added release button column
113+
- Use package.png instead of package.gif to have transparent icons
114+
- Fixed release link being shown when project was disabled
115+
116+
## Version 2.2 (9/13/2011)
117+
118+
- Disabled auto-refresh when triggering a new release (thanks rseguy)
119+
- [JENKINS-9705](http://issues.jenkins-ci.org/browse/JENKINS-9705)
120+
Option to override regular build parameters during release
121+
122+
## Version 2.1 (3/13/2011)
123+
124+
- [JENKINS-8816](http://issues.jenkins-ci.org/browse/JENKINS-8816)
125+
Wrapped each build steps list in a f:block which seems to correct
126+
the drag and drop behavior
127+
- [JENKINS-8829](http://issues.jenkins-ci.org/browse/JENKINS-8829)
128+
Create permalinks for the latest release and latest successful
129+
release builds
130+
- Added i8n for promotion support
131+
- Added German translations
132+
133+
## Version 2.0 (2/15/2011)
134+
135+
- Migrated to Jenkins
136+
- If release build result is not at least unstable, then don't keep
137+
build forever.
138+
- Expand release version template using build variables as well as
139+
release parameters
140+
- Add support for the promoted build plugin to add a condition that
141+
the build must be a release build
142+
- Show all previous release parameters when scheduling a release build
143+
- Add post successful build steps and post failed build steps
144+
- Prefill release parameters with previous release builds parameters
145+
(supports text field, checkbox & select list (drop-down list) input
146+
types)
147+
148+
## Version 1.10 (7/21/2010)
149+
150+
- Added new checkbox on job config page to allow the disabling of the
151+
automated marking of the build as keep forever
152+
- Fixed issue where if you had overlapping parameter names defined as
153+
release and build parameters, the default build parameter values
154+
were being used to resolve the release version template instead of
155+
the release parameter values.
156+
157+
## Version 1.9 (11/15/2009)
158+
159+
- Fixed issue where release plugin would prevent Jenkins from starting
160+
if dashboard view plugin was not installed
161+
([4845](https://issues.jenkins-ci.org/browse/JENKINS-4845))
162+
- Fixed issue where recent releases portlet would throw NullPointer if
163+
a build was active
164+
165+
## Version 1.8 (10/13/2009)
166+
167+
- Added support for [Dashboard
168+
View](https://wiki.jenkins.io/display/JENKINS/Dashboard+View) plugin
169+
by adding Recent Releases portlet
170+
171+
## Version 1.7 (08/30/2009)
172+
173+
-  After sleeping on it, changed the implementation to use the release
174+
version template so that parameters types don't have to be aware of
175+
the release plugin in order to be used as a release version string.
176+
177+
## Version 1.6 (08/29/2009)
178+
179+
- Added new Release String Parameter that, when configured as a
180+
release parameter, will be used as the release value and the plugin
181+
will then set description and tooltip.
182+
([4022](https://issues.jenkins-ci.org/browse/JENKINS-4022))
183+
184+
## Version 1.5 (08/06/2009)
185+
186+
- Changed form submission to use post instead of get. File upload
187+
parameters work now.
188+
189+
## Version 1.4 (05/16/2009)
190+
191+
- Fixed regression issue introducing release parameters
192+
([3690](https://issues.jenkins-ci.org/browse/JENKINS-3690))
193+
194+
## Version 1.3 (05/11/2009)
195+
196+
- Fixed regression due to maven plugin change
197+
([3628](https://issues.jenkins-ci.org/browse/JENKINS-3628))
198+
199+
## Version 1.2 (05/1/2009)
200+
201+
- Added support for user supplied release parameters leveraging
202+
Jenkins' parameter capability
203+
([3370](https://issues.jenkins-ci.org/browse/JENKINS-3370))
204+
205+
## Version 1.1 (03/26/2009)
206+
207+
- Add permissions on triggering a release
208+
- Fixed issue where parameters were not being resolved
209+
- Captured release parameters as build parameters which can now be
210+
viewed via build parameters link
211+
212+
## Version 1.0 (02/10/2009)
213+
214+
- Initial release 

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License
2+
3+
Copyright 2020
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Release
2+
3+
This plugin adds the ability to wrap your job with pre- and post- build
4+
steps which are only executed when a manual release build is triggered.
5+
6+
Additional plugin integration
7+
8+
Supports the [Dashboard
9+
View](https://plugins.jenkins.io/dashboard-view/) with the
10+
Recent Releases portlet and the [Promoted Builds
11+
Plugin](https://plugins.jenkins.io/promoted-builds/)
12+
with the Release build condition.
13+
14+
# Configure the job to enable releasing
15+
16+
On the job configuration page, enable the release build configuration
17+
under the Build Wrapper heading and add your required release version
18+
template string, release
19+
[parameters](https://plugins.jenkins.io/parameterized-trigger/),
20+
pre and post build steps that you need to complete a release.
21+
22+
### Release Version Template
23+
24+
The release version template was added in version 1.7 of the release
25+
plugin.  This parameter lets you define how the release plugin
26+
identifies the release of the project.  This is done by building a
27+
parameter based template which is resolved at release time to a fully
28+
resolved string.  For instance, the template can be: Release:
29+
${releaseVersion}.  This will instruct the release plugin to use the
30+
value of the parameter name releaseVersion to come up with the fully
31+
identifying string which will then be used as a description of the
32+
release build and as a tooltip on the release build icon on the
33+
historical build list.
34+
35+
### Release Parameters
36+
37+
The release parameters let you define various parameters that are
38+
presented to the user when a release is requested.  The list of
39+
available parameter types are the same as those available in the
40+
parameterized build option for Jenkins.
41+
42+
### Build Steps
43+
44+
The build steps section is used to define arbitrary actions to run
45+
before and after the standard job build steps run. These are the same
46+
build steps offered as the build steps available in the free style job
47+
type.
48+
49+
![](docs/images/config.png)
50+
51+
In my experience, a release build typically requires pre-build steps of
52+
validating the project is releasable and bumping the version to the
53+
release version. After the build runs as usual, the post build steps are
54+
labeling the codebase and bumping the version to the next development
55+
version.
56+
57+
# Executing a release
58+
59+
To run a release, click the Release icon from the job home page. This
60+
will bring you to the release details page where you will be prompted to
61+
fill in any parameters that you have defined (or the default
62+
RELEASE\_VERSION and DEVELOPMENT\_VERSION if there were no parameters
63+
defined).  As seen above, these values are then available at job
64+
execution time in both the pre and post release steps as well as the
65+
normal build steps. Finally, click the schedule release build and the
66+
job is scheduled to run immediately, now including the execution of the
67+
pre and post build steps.
68+
69+
![](docs/images/build.png)
70+
71+
# Viewing results
72+
73+
Once the build is complete, the release plugin automatically locks the
74+
build, preventing it from being automatically deleted and adds a release
75+
icon denoting it as a release build.
76+
77+
![](docs/images/results.png)
78+
79+
# Supported Job Types
80+
81+
 The release plugin supports the Maven2 and Free Style Job type
82+
83+
# Recent Releases Portlet
84+
85+
The release plugin contributes a recent releases portlet that can be
86+
used in a [Dashboard
87+
View](https://plugins.jenkins.io/dashboard-view/)
88+
89+
This portlet shows the 5 most recent release builds in normal mode with
90+
a link that brings you to the build page and the version string.
91+
![](docs/images/normal-mode.PNG)
92+
In the maximized mode, it shows the 50 most recent builds with
93+
additional detail.  Additionally, it offers an rss feed while in the
94+
maximized mode so that you can get notified of all release builds or all
95+
failing release builds.
96+
![](docs/images/maximized-mode.PNG)

README.txt

-3
This file was deleted.

docs/images/build.png

17.1 KB
Loading

docs/images/config.png

34.9 KB
Loading

docs/images/maximized-mode.PNG

5.96 KB
Loading

docs/images/normal-mode.PNG

2.8 KB
Loading

docs/images/results.png

3.47 KB
Loading

0 commit comments

Comments
 (0)