fix the clean checkou and only check in PR (#11363)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c4b9b3cfd3
Коммит
efb9e2fe54
@@ -237,6 +237,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stage('Clean checkout') {
|
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
|
// 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
|
// 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
|
// We need to do that to build the docker image based on the original git commit and then this will be used by
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user