-
Notifications
You must be signed in to change notification settings - Fork 560
Expand file tree
/
Copy pathJenkinsfile2
More file actions
32 lines (29 loc) · 861 Bytes
/
Jenkinsfile2
File metadata and controls
32 lines (29 loc) · 861 Bytes
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
pipeline {
agent any
stages {
stage('Build Application') {
steps {
sh 'mvn -f pom.xml clean package'
}
post {
success {
echo "Now Archiving the Artifacts....."
archiveArtifacts artifacts: '**/*.war'
}
}
}
stage('Deploy to Staging Environment'){
steps{
build job: 'deploy-application-staging-environment-pipeline'
}
}
stage('Deploy to Production Environment'){
steps{
timeout(time:5, unit:'DAYS'){
input message:'Approve PRODUCTION Deployment?'
}
build job: 'deploy-application-production-environment-pipeline'
}
}
}
}