Skip to content

Commit 8fe463b

Browse files
authored
Update jenkinsartifact new
1 parent 19dbabd commit 8fe463b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jenkinsartifact new

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ pipeline {
99
}
1010
stage('Build Application Code') {
1111
steps {
12-
sh 'mvn package -f pom.xml'
12+
sh 'mvn clean -f pom.xml'
1313
}
1414
}
1515
stage('Upload Artifact to Nexus') {
1616
steps {
1717
nexusArtifactUploader artifacts: [[artifactId: 'java-samples', classifier: '', file: 'target/java-samples.war', type: 'pom']], credentialsId: 'nexus_user', groupId: 'com.github.chrishantha.sample', nexusUrl: '3.142.219.36:8081', nexusVersion: 'nexus2', protocol: 'http', repository: 'maven-releases', version: '0.0.2-SNAPSHOT'
1818
}
1919
}
20+
}
21+
}

0 commit comments

Comments
 (0)