generated from gCubeCI/Pipeline-Docker-Template
add trigger cron every 2 hours
This commit is contained in:
parent
a01f74c667
commit
f0e67ccdf9
|
@ -20,7 +20,8 @@ pipeline {
|
|||
agent {
|
||||
label 'CD'
|
||||
triggers {
|
||||
cron('H */4 * * 1-5')
|
||||
//once in every two hours slot between 9 AM and 5 PM every weekday (perhaps at 10:38 AM, 12:38 PM, 2:38 PM, 4:38 PM)
|
||||
cron('H H(9-16)/2 * * 1-5')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,9 +56,9 @@ pipeline {
|
|||
steps {
|
||||
sh '''
|
||||
date=`date`
|
||||
echo "#Build ${PIPELINE_BUILD_NUMBER},," > $ACTION_REPORT
|
||||
echo "#StartTime ${date},," >> $ACTION_REPORT
|
||||
echo "Project,Repo,Result" >> $ACTION_REPORT
|
||||
echo "#Build ${PIPELINE_BUILD_NUMBER},,"
|
||||
echo "#StartTime ${date},,"
|
||||
echo "Project,Repo,Result"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue