forked from sampathshivakumar/Python-Source-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
34 lines (23 loc) · 665 Bytes
/
Jenkinsfile
File metadata and controls
34 lines (23 loc) · 665 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
33
34
node {
def app
stage('Clone Repository') {
checkout scm
}
stage('Build Image') {
app = docker.build("shivaladdu/test")
}
stage('Test Image') {
app.inside {
sh 'echo "Tests passed"'
}
}
stage('Push Image') {
docker.withRegistry('https://registry.hub.docker.com', 'dockerhub') {
app.push("${env.BUILD_NUMBER}")
}
}
stage('Trigger ManifestUpdate') {
echo "triggering updatemanifestjob"
build job: 'updatemanifest', parameters: [string(name: 'DOCKERTAG', value: env.BUILD_NUMBER)]
}
}