Jenkins test stage

This commit is contained in:
Dominik Chilla 2019-06-13 23:16:46 +02:00
parent ea4a7d6b8a
commit d29a201002
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ pipeline {
stage('Test image') {
steps {
script {
dockerImage.inside("--entrypoint=['/bin/sleep', 'infinity']") {
dockerImage.inside("--entrypoint='/entrypoint_test.sh'") {
sh '/usr/bin/env'
}
}

View File

@ -21,5 +21,6 @@ RUN env; set -ex ; \
COPY app/*.py /app/
COPY entrypoint.sh /entrypoint.sh
COPY entrypoint_test.sh /entrypoint_test.sh
ENTRYPOINT ["/entrypoint.sh"]