run pytest
This commit is contained in:
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@@ -11,22 +11,29 @@ pipeline {
|
||||
stage('build') {
|
||||
steps{
|
||||
script {
|
||||
// app = docker.build("docker.triton2.fet.at/dev_theia", "--no-cache .")
|
||||
app = docker.build("doc2020apptest", ".")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test Inside') {
|
||||
steps{
|
||||
script {
|
||||
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('Test Inside') {
|
||||
steps{
|
||||
script {
|
||||
app.inside("-u root:root") {
|
||||
sh '/usr/local/openresty/bin/openresty -t'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
stage('Deploy Image') {
|
||||
steps{
|
||||
|
||||
Reference in New Issue
Block a user