-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
32 lines (26 loc) · 1.03 KB
/
Jenkinsfile
File metadata and controls
32 lines (26 loc) · 1.03 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
node{
stage("App Build started"){
echo 'App build started..'
git credentialsId: 'Github-ID', url: 'https://github.com/vickeyreddy/python-docker.git'
}
stage('Docker Build') {
def app = docker.build "vickeyreddy/python-docker"
}
stage("Tag & Push image"){
withDockerRegistry([credentialsId: 'dockerID',url: ""]) {
sh 'docker tag vickeyreddy/python-docker vickeyreddy/python-docker:002'
sh 'docker push vickeyreddy/python-docker:002'
sh 'docker push vickeyreddy/python-docker:latest'
}
}
stage("App deployment started"){
//sh 'oc login https://api.starter-us-west-1.openshift.com --token=l334xAzzGBl7kvYuUFcvfRCCXMsQxeQJox3pEzbSQrQ'
//sh 'oc new project padmavathy'
//sh 'oc new-app manee2k6/python-app:pattabhi-1.0 --name python-app'
//sh 'oc expose svc python-app --name=python-app'
//sh 'oc status'
}
stage('App deployed to Openshift environment') {
echo 'App deployed to Openshift environment..'
}
}