We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04094c9 commit c85ea4cCopy full SHA for c85ea4c
Jenkinsfile
@@ -26,13 +26,11 @@ pipeline {
26
27
stage('Build WAR') {
28
steps {
29
- dir('git-Demo') {
30
sh 'mvn -B -DskipTests clean package'
31
}
32
- }
33
post {
34
success {
35
- archiveArtifacts artifacts: 'git-Demo/target/*.war', fingerprint: true
+ archiveArtifacts artifacts: 'target/*.war', fingerprint: true
36
37
38
@@ -41,7 +39,7 @@ pipeline {
41
39
42
40
sshagent(credentials: [env.PROD_CRED_ID]) {
43
sh '''
44
- WAR_FILE=$(ls git-Demo/target/*.war | head -n1)
+ WAR_FILE=$(ls target/*.war | head -n1)
45
APP_WAR="${APP_NAME}.war"
46
47
mkdir -p ~/.ssh
0 commit comments