Skip to content

Commit

Permalink
fix: comment breaking Jenkins stages
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia authored and alvarolopez committed Sep 27, 2023
1 parent 4a26593 commit 336b15c
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ pipeline {
ToxEnvRun('cover')
ToxEnvRun('cobertura')
}
post {
success {
HTMLReport('cover', 'index.html', 'coverage.py report')
CoberturaReport('**/coverage.xml')
}
}
// post {
// success {
// HTMLReport('cover', 'index.html', 'coverage.py report')
// CoberturaReport('**/coverage.xml')
// }
// }
}

stage('Dependency check') {
Expand All @@ -49,46 +49,46 @@ pipeline {
}
}

stage('DockerHub delivery') {
when {
anyOf {
branch 'master'
buildingTag()
}
}
agent {
label 'docker-build'
}
steps {
checkout scm
script {
dockerhub_image_id = DockerBuild(dockerhub_repo,
tag: env.BRANCH_NAME)
}
}
post {
success {
DockerPush(dockerhub_image_id)
}
failure {
DockerClean()
}
always {
cleanWs()
}
}
}
// stage('DockerHub delivery') {
// when {
// anyOf {
// branch 'master'
// buildingTag()
// }
// }
// agent {
// label 'docker-build'
// }
// steps {
// checkout scm
// script {
// dockerhub_image_id = DockerBuild(dockerhub_repo,
// tag: env.BRANCH_NAME)
// }
// }
// post {
// success {
// DockerPush(dockerhub_image_id)
// }
// failure {
// DockerClean()
// }
// always {
// cleanWs()
// }
// }
// }

stage('PyPI delivery') {
when {
anyOf {
buildingTag()
}
}
steps {
PyPIDeploy('deepaas', 'indigobot-pypi')
}
}
// stage('PyPI delivery') {
// when {
// anyOf {
// buildingTag()
// }
// }
// steps {
// PyPIDeploy('deepaas', 'indigobot-pypi')
// }
// }

}
}

0 comments on commit 336b15c

Please sign in to comment.