Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,21 @@ pipeline {
stage('Sanity checks') {
when {
beforeAgent true
not {
changeRequest()
anyOf {
not { changeRequest() }
expression { return params.Run_As_Master_Branch }
}
}
steps {
withGithubNotify(context: 'Sanity checks', tab: 'tests') {
deleteDir()
unstash 'source'
script {
dir(BASE_DIR){
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, dockerImage: 'python:3.7-stretch')
docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){
dir("${BASE_DIR}"){
// registry: '' will help to disable the docker login
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, registry: '')
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion .ci/linting.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ pipeline {
steps {
script {
def sha = getGitCommitSha()
preCommit(commit: "${sha}", junit: true, dockerImage: 'python:3.7-stretch')
docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){
// registry: '' will help to disable the docker login
preCommit(commit: "${sha}", junit: true, registry: '')
}
}
}
}
Expand Down
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,21 @@ pipeline {
stage('Sanity checks') {
when {
beforeAgent true
not {
changeRequest()
anyOf {
not { changeRequest() }
expression { return params.Run_As_Master_Branch }
}
}
steps {
withGithubNotify(context: 'Sanity checks', tab: 'tests') {
deleteDir()
unstash 'source'
script {
dir(BASE_DIR){
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, dockerImage: 'python:3.7-stretch')
docker.image('python:3.7-stretch').inside("-e PATH=${PATH}:${env.WORKSPACE}/bin"){
dir("${BASE_DIR}"){
// registry: '' will help to disable the docker login
preCommit(commit: "${GIT_BASE_COMMIT}", junit: true, registry: '')
}
}
}
}
Expand Down