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

Commit c85ea4c

Browse files
Update Jenkinsfile
1 parent 04094c9 commit c85ea4c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎Jenkinsfile‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ pipeline {
2626

2727
stage('Build WAR') {
2828
steps {
29-
dir('git-Demo') {
3029
sh 'mvn -B -DskipTests clean package'
3130
}
32-
}
3331
post {
3432
success {
35-
archiveArtifacts artifacts: 'git-Demo/target/*.war', fingerprint: true
33+
archiveArtifacts artifacts: 'target/*.war', fingerprint: true
3634
}
3735
}
3836
}
@@ -41,7 +39,7 @@ pipeline {
4139
steps {
4240
sshagent(credentials: [env.PROD_CRED_ID]) {
4341
sh '''
44-
WAR_FILE=$(ls git-Demo/target/*.war | head -n1)
42+
WAR_FILE=$(ls target/*.war | head -n1)
4543
APP_WAR="${APP_NAME}.war"
4644
4745
mkdir -p ~/.ssh

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /