Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
javahometech authored Dec 19, 2020
1 parent 64ddbb0 commit 0e130e8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ pipeline{
}
stage("Nexus Deploy"){
steps{
nexusArtifactUploader artifacts: [[artifactId: 'myweb', classifier: '', file: 'target/myweb-0.0.11.war', type: 'war']],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.71.247:8081',
nexusVersion: 'nexus3',
protocol: 'http', repository: 'javahome-my-app',
version: '0.0.11'
script{
def pomFile = readMavenPom file: 'pom.xml'
nexusArtifactUploader artifacts: [[artifactId: 'myweb', classifier: '', file: "target/myweb-${pomFile.version}.war", type: 'war']],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.71.247:8081',
nexusVersion: 'nexus3',
protocol: 'http', repository: 'javahome-my-app',
version: pomFile.version
}
}
}

Expand Down

0 comments on commit 0e130e8

Please sign in to comment.