diff --git a/Jenkinsfile b/Jenkinsfile index c5e86c3..e10d447 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,21 +12,28 @@ pipeline { steps{ script { // app = docker.build("docker.triton2.fet.at/dev_theia", "--no-cache .") - app = docker.build("doc2020app", ".") + app = docker.build("doc2020apptest", ".") } } } - /* + stage('Test Inside') { steps{ script { - app.inside("-u root:root") { - sh '/usr/local/openresty/bin/openresty -t' + testapp.inside("-u root:root") { + sh 'pytest -v' } } } } - */ + stage('rebuild') { + steps{ + script { + // app = docker.build("docker.triton2.fet.at/dev_theia", "--no-cache .") + app = docker.build("doc2020app", ".") + } + } + } stage('Deploy Image') { steps{