jenkinsfile: customize gitscm
Customize gitscm so the changelog is present when opening the PR. Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
parent
d24fedefb2
commit
8b35a6f2a8
|
@ -29,6 +29,24 @@ pipeline {
|
|||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
script {
|
||||
checkout scmGit(
|
||||
branches: scm.branches,
|
||||
extensions: [
|
||||
cloneOption(depth: 100, noTags: true, reference: '', shallow: true),
|
||||
changelogToBranch(changelogBase(
|
||||
compareRemote: 'origin',
|
||||
compareTarget: CHANGE_TARGET
|
||||
))
|
||||
],
|
||||
userRemoteConfigs: scm.userRemoteConfigs
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Check changes') {
|
||||
when {
|
||||
changeset pattern: "apps/connector/**", comparator: "GLOB"
|
||||
|
|
Loading…
Reference in New Issue