Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add parameters for jf release and jfrog release phases in Jenkinsfile #3284

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

Open
RemiBou wants to merge 1 commit into master
base: master
Choose a base branch
Loading
from feature/JGC-000-release-flags
Open

Add parameters for jf release and jfrog release phases in Jenkinsfile #3284

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions Jenkinsfile
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
properties([
parameters([
stringParam(name: 'BRANCH', defaultValue: 'master', description: 'Git branch to checkout'),
booleanParam(name: 'RUN_JF_RELEASE', defaultValue: true, description: 'Run jf release phase'),
booleanParam(name: 'RUN_JFROG_RELEASE', defaultValue: true, description: 'Run jfrog release phase'),
booleanParam(name: 'RUN_BUILD_RPM', defaultValue: true, description: 'Run build RPM step'),
booleanParam(name: 'RUN_NPM_PACKAGE', defaultValue: true, description: 'Run NPM package publish'),
booleanParam(name: 'RUN_DOCKER_PUBLISH', defaultValue: true, description: 'Run Docker image publish'),
Expand Down Expand Up @@ -83,14 +85,18 @@ node("docker-ubuntu20-xlarge") {
installNpm(nodeVersion)
}

stage('jf release phase') {
runRelease(architectures)
if (params.RUN_JF_RELEASE) {
stage('jf release phase') {
runRelease(architectures)
}
}

stage('jfrog release phase') {
cliExecutableName = 'jfrog'
identifier = 'v2'
runRelease(architectures)
if (params.RUN_JFROG_RELEASE) {
stage('jfrog release phase') {
cliExecutableName = 'jfrog'
identifier = 'v2'
runRelease(architectures)
}
}
}
}
Expand Down