add Jenkinsfile for docker
This commit is contained in:
parent
e0883e654e
commit
01717da2d9
21
Docker/Jenkinsfile
vendored
21
Docker/Jenkinsfile
vendored
@ -1,10 +1,19 @@
|
||||
pipeline {
|
||||
agent { dockerfile true }
|
||||
stages {
|
||||
stage('Launch Docker') {
|
||||
steps {
|
||||
sh 'ls -la'
|
||||
node {
|
||||
def app
|
||||
stage('Clone repository') {
|
||||
|
||||
checkout scm
|
||||
}
|
||||
|
||||
stage('Build image') {
|
||||
|
||||
app = docker.build("sparafinski/ium")
|
||||
}
|
||||
|
||||
stage('Test image') {
|
||||
app.inside {
|
||||
|
||||
sh 'echo "Tests passed"'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user