Skip to content

Commit

Permalink
Add Jenkins multibranch job to copy tags
Browse files Browse the repository at this point in the history
Summary:
Currently tags are copied after a copybara trigger, which only happens
on pushes. Instead add a multibranch pipeline to Jenkins that also triggers
copybara. This will ensure that tags get copied over even without a commit
being pushed to the repo.

Test Plan: Run it in Jenkins

Reviewers: zasgar, michelle

Reviewed By: michelle

Signed-off-by: Copybara <[email protected]>

Differential Revision: https://phab.corp.pixielabs.ai/D11649

GitOrigin-RevId: 15ba5c7
  • Loading branch information
copybaranaut committed Jun 22, 2022
1 parent c5f35e9 commit a9aa1d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ isMainRun = (env.JOB_NAME == 'pixie-main/build-and-test-all')
isNightlyTestRegressionRun = (env.JOB_NAME == 'pixie-main/nightly-test-regression')

isCopybaraPublic = env.JOB_NAME.startsWith('pixie-main/copybara-public')
isCopybaraTags = env.JOB_NAME.startsWith('pixie-main/copybara-tags')
isCopybaraPxAPI = env.JOB_NAME.startsWith('pixie-main/copybara-pxapi-go')

isOSSMainRun = (env.JOB_NAME == 'pixie-oss/build-and-test-all')
Expand Down Expand Up @@ -1418,7 +1419,7 @@ if (isNightlyTestRegressionRun) {
buildScriptForCloudProdRelease()
} else if (isOSSCloudBuildRun) {
buildScriptForOSSCloudRelease()
} else if (isCopybaraPublic) {
} else if (isCopybaraPublic || isCopybaraTags) {
buildScriptForCopybaraPublic()
} else if (isCopybaraPxAPI) {
buildScriptForCopybaraPxAPI()
Expand Down

0 comments on commit a9aa1d5

Please sign in to comment.