This commit is contained in:
Vendored
+5
-9
@@ -1,18 +1,13 @@
|
|||||||
node {
|
pipeline {
|
||||||
def app
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
stage('Clone repository') {
|
stage('Clone repository') {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build image') {
|
stage('Build image') {
|
||||||
app = docker.build("brandonjones085/test")
|
app = docker.build("efstajas/homepage")
|
||||||
}
|
|
||||||
|
|
||||||
stage('Test image') {
|
|
||||||
app.inside {
|
|
||||||
sh 'echo "Tests passed"'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Push image') {
|
stage('Push image') {
|
||||||
@@ -21,4 +16,5 @@ node {
|
|||||||
app.push("latest")
|
app.push("latest")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user