Jenkins docker.inside()

This commit is contained in:
Dominik Chilla 2019-06-17 19:14:42 +02:00
parent 3b0565efd5
commit 9bfcf766ac

2
Jenkinsfile vendored
View File

@ -27,7 +27,7 @@ pipeline {
dockerImageObj.inside() { dockerImageObj.inside() {
sh 'echo "INSIDE CONTAINER!"' sh 'echo "INSIDE CONTAINER!"'
sh '/usr/bin/python3 /app/sos-milter.py &' sh '/usr/bin/python3 /app/sos-milter.py &'
sh 'sleep 5; if [ -f /socket/sos-milter ]; then exit 0; else exit 1; fi' sh 'sleep 5; ls -l /socket; if [ -f /socket/sos-milter ]; then exit 0; else exit 1; fi'
} }
} }
} }