Commit 07b9af68 authored by BOURLIER Antoine's avatar BOURLIER Antoine
Browse files

jenkinsfile

parent fcd88f6e
pipeline {
agent any
stages {
stage('Build') {
steps {
sh """
docker build -t 'tncy2021-abo/snake-basket' . > build.out
cat build.out
"""
}
}
stage('Test') {
steps {
sh """
mkdir -p app-log
docker run --rm -d -v app-log:/var/log/snake-basket: --name snake-basket tncy2021abo/snake-basket
echo "Container started"
docker stop snake-basket
"""
}
}
stage('Deploy') {
steps {
sh 'echo DEPLOY'
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment