Skip to content

Commit 6461ab0

Browse files
authored
Rename PRERELEASE to GITHUB_PRERELEASE
1 parent 0bdddac commit 6461ab0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ properties([
33
parameters([
44
string(defaultValue: '1.0', description: 'Current version number', name: 'VERSION'),
55
text(defaultValue: '', description: 'A list of changes', name: 'CHANGES'),
6-
booleanParam(defaultValue: false, description: 'If build should be marked as pre-release', name: 'PRERELEASE'),
6+
choice(choices: 'all\nkernel-tarball\nlinux-package\nxenial-minimal-pinebook\nxenial-mate-pinebook\nstretch-i3-pinebook\nxenial-pinebook\nlinux-pinebook\nxenial-minimal-pine64\nlinux-pine64\nxenial-minimal-sopine\nlinux-sopine', description: 'What makefile build type to target', name: 'MAKE_TARGET')
7+
booleanParam(defaultValue: true, description: 'Whether to upload to Github for release or not', name: 'GITHUB_UPLOAD'),
8+
booleanParam(defaultValue: false, description: 'If build should be marked as pre-release', name: 'GITHUB_PRERELEASE'),
79
string(defaultValue: 'ayufan-pine64', description: 'GitHub username or organization', name: 'GITHUB_USER'),
810
string(defaultValue: 'build-pine64-image', description: 'GitHub repository', name: 'GITHUB_REPO'),
9-
booleanParam(defaultValue: true, description: 'Whether to upload to Github for release or not', name: 'GITHUB_UPLOAD'),
10-
choice(choices: 'all\nkernel-tarball\nlinux-package\nxenial-minimal-pinebook\nxenial-mate-pinebook\nstretch-i3-pinebook\nxenial-pinebook\nlinux-pinebook\nxenial-minimal-pine64\nlinux-pine64\nxenial-minimal-sopine\nlinux-sopine', description: 'What makefile build type to target', name: 'MAKE_TARGET')
1111
])
1212
])
1313
*/
@@ -45,7 +45,7 @@ node('docker && linux-build') {
4545
withEnv([
4646
"VERSION=$VERSION",
4747
"CHANGES=$CHANGES",
48-
"PRERELEASE=$PRERELEASE",
48+
"GITHUB_PRERELEASE=$GITHUB_PRERELEASE",
4949
"GITHUB_USER=$GITHUB_USER",
5050
"GITHUB_REPO=$GITHUB_REPO"
5151
]) {
@@ -70,7 +70,7 @@ node('docker && linux-build') {
7070
7171
wait
7272
73-
if [[ "$PRERELEASE" == "true" ]]; then
73+
if [[ "$GITHUB_PRERELEASE" == "true" ]]; then
7474
github-release edit \
7575
--tag "${VERSION}" \
7676
--name "$VERSION: $BUILD_TAG" \

0 commit comments

Comments
 (0)