File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- String cron_string = BRANCH_NAME == " master " ? " H 12 * * 1,3" : " "
1
+ String cron_string = BRANCH_NAME == " main " ? " H 12 * * 1,3" : " "
2
2
3
3
pipeline {
4
4
agent { label ' ephemeral-linux' }
@@ -14,11 +14,11 @@ pipeline {
14
14
GIT_COMMIT_SUBJECT = sh(returnStdout : true , script :" git log --format=%s -n 1 HEAD" ). trim()
15
15
GIT_COMMIT_AUTHOR = sh(returnStdout : true , script :" git log --format='%an' -n 1 HEAD" ). trim()
16
16
GIT_COMMIT_SUMMARY = " `<https://github.com/Kaggle/docker-rstats/commit/${ GIT_COMMIT} |${ GIT_COMMIT_SHORT} >` ${ GIT_COMMIT_SUBJECT} - ${ GIT_COMMIT_AUTHOR} "
17
- SLACK_CHANNEL = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" master \" ]]; then echo \" #kernelops\" ; else echo \" #builds\" ; fi" ). trim()
17
+ SLACK_CHANNEL = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" main \" ]]; then echo \" #kernelops\" ; else echo \" #builds\" ; fi" ). trim()
18
18
// See b/152450512
19
19
GITHUB_PAT = credentials(' github-pat' )
20
- PRETEST_TAG = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" master \" ]]; then echo \" ci-pretest\" ; else echo \" ${ GIT_BRANCH} -pretest\" ; fi" ). trim()
21
- STAGING_TAG = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" master \" ]]; then echo \" staging\" ; else echo \" ${ GIT_BRANCH} -staging\" ; fi" ). trim()
20
+ PRETEST_TAG = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" main \" ]]; then echo \" ci-pretest\" ; else echo \" ${ GIT_BRANCH} -pretest\" ; fi" ). trim()
21
+ STAGING_TAG = sh(returnStdout : true , script : " if [[ \" ${ GIT_BRANCH} \" == \" main \" ]]; then echo \" staging\" ; else echo \" ${ GIT_BRANCH} -staging\" ; fi" ). trim()
22
22
}
23
23
24
24
stages {
You can’t perform that action at this time.
0 commit comments