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