forked from boxfuse/boxfuse-sample-java-war-hello
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJenkinsfile
More file actions
34 lines (33 loc) · 1.24 KB
/
Jenkinsfile
File metadata and controls
34 lines (33 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pipeline {
agent any
stages {
stage('build_number') {
steps {
buildName '#pipeline-${BULID_NUMBER}'
script{
currentBuild.displayName ="#pipeline-${BUILD_NUMBER}"
}
}
}
stage('clone') {
steps {
git credentialsId: '7fb1a87f-97b0-40cb-a4c8-6584c4c04407', url: 'https://github.com/pavanballeda/boxfuse-sample-java-war-hello.git'
}
}
stage('build-maven') {
steps {
bat 'mvn clean install'
}
}
stage('deploy-tomcatserver') {
steps {
deploy adapters: [tomcat8(credentialsId: 'e3b16a95-c8db-4769-b263-ee6185bd4110', path: '', url: 'http://localhost:8090')], contextPath: 'pipeline_job', war: '**/*.war'
}
}
stage('store-nexus') {
steps {
nexusPublisher nexusInstanceId: 'nexus', nexusRepositoryId: 'Maven-new', packages: [[$class: 'MavenPackage', mavenAssetList: [[classifier: '', extension: '', filePath: 'target/hello-1.0.war']], mavenCoordinate: [artifactId: 'pipeline', groupId: 'com.new-project', packaging: 'war', version: '1.1.1']]]
}
}
}
}