Movatterモバイル変換


[0]ホーム

URL:


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

Commit3793fff

Browse files
committed
Added parameters, deploy branch setting
1 parentecd9907 commit3793fff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎Jenkinsfile‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ pipeline {
1818

1919
agent any
2020

21+
parameters {
22+
booleanParam(name:'DEPLOY_ARTIFACTS',defaultValue:false,description:'Deploy artifacts to nexus')
23+
booleanParam(name:'RUN_SONAR',defaultValue:false,description:'Run sonar analysis')
24+
}
25+
2126
environment {
2227
MAVEN_BUILD_PROPERTIES=''
28+
DEPLOY_BRANCH='master'
2329
}
2430

2531
triggers {
@@ -55,7 +61,10 @@ pipeline {
5561

5662
stage('Deploy to nexus') {
5763
when {
58-
environmentname:'DEPLOY_ARTIFACTS',value:'true'
64+
allOf {
65+
branch"${DEPLOY_BRANCH}"
66+
environmentname:'DEPLOY_ARTIFACTS',value:'true'
67+
}
5968
}
6069

6170
steps {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp