overrideIndexTriggers. Bài này thì chúng ta tìm hiểu về Trigger giữa jenkins và git
CHúng ta có thể disable trigger của 1 branch nào đó.
https://github.com/mrnim94/scripted-overrideIndexTriggers.git
Mình cung cấp link github trên các bạn cần tạo job Multibranch Pipeline như ảnh bên dưới:
sau khi save thì jenkins thực hiện scan git
node {
properties(
[
overrideIndexTriggers(true)
]
)
stage('Build') {
echo 'Hello World 3'
}
}
Ở đây overrideIndexTriggers(true).
step 2: chúng ta sửa file jenkinsFiles
Step 3:
Step 4