fix the clean checkou and only check in PR (#11363)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2019-06-23 12:29:16 +02:00
коммит произвёл GitHub
родитель c4b9b3cfd3
Коммит efb9e2fe54

Просмотреть файл

@@ -237,6 +237,9 @@ pipeline {
}
stage('Clean checkout') {
when {
expression { env.CHANGE_ID != null }
}
// We need to perform a clean checkout here to ge the original git commit hash from the PR
// Jenkins now merges master in top of the PR and this generate a new git hash
// We need to do that to build the docker image based on the original git commit and then this will be used by