Chúng ta sử scripted pipeline để cấu cron trong jekins.
node {
properties([
pipelineTriggers([
//MINUTE, HOUR, The day of the month (1–31), MONTH, The day of the week (0–7) where 0 and 7 are Sunday.
cron('0 1 2 3 1-7')
//cron(H */2 1-3 1,3 2-4)
//@yearly, @annually, @monthly, @weekly, @daily, @midnight,@hourly
//cron('@daily')
//cron(TZ=Europe/London\n)
])
])
stage('Build'){
echo "Nimtechnology"
}
}
Vậy là xong bài này òi.