forked from bcgov/jag-lcrb-carla-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
28 lines (23 loc) · 894 Bytes
/
Jenkinsfile
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
node('master') {
stage('Build Image') {
echo "Building..."
openshiftBuild bldCfg: 'cllc-public', showBuildLogs: 'true'
openshiftTag destStream: 'cllc-public', verbose: 'true', destTag: '$BUILD_ID', srcStream: 'cllc-public', srcTag: 'latest'
}
stage('Deploy to Dev') {
echo "Deploying to dev..."
openshiftTag destStream: 'cllc-public', verbose: 'true', destTag: 'dev', srcStream: 'cllc-public', srcTag: '$BUILD_ID'
}
}
stage('Deploy on Test') {
input "Deploy to Test?"
node('master') {
openshiftTag destStream: 'cllc-public', verbose: 'true', destTag: 'test', srcStream: 'cllc-public', srcTag: '$BUILD_ID'
}
}
stage('Deploy on Prod') {
input "Deploy to Prod?"
node('master') {
openshiftTag destStream: 'cllc-public', verbose: 'true', destTag: 'prod', srcStream: 'cllc-public', srcTag: '$BUILD_ID'
}
}