forked from chrishantha/sample-java-programs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartifact Jenkins
More file actions
21 lines (20 loc) · 759 Bytes
/
Copy pathartifact Jenkins
File metadata and controls
21 lines (20 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pipeline {
agent any
stages {
stage('Clone Code') {
steps {
git 'https://github.com/ramdevops03/Development-Team-Repo.git'
}
}
stage('Build Application Code') {
steps {
sh 'mvn clean -f pom.xml'
}
}
stage('Upload Artifact to Nexus') {
steps {
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'
}
}
}
}