DLPX-91971 linux-pkg: Add support for os-upgrade branches #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Ubuntu version upgrade projects require an "os-upgrade" branch in product repositories. Instead of requiring this branch in each repository, we can make the linux-pkg framework use the "develop" branch if the "os-upgrade" branch of a package repository does not exist. This makes branch management slightly easier. This also means that "os-upgrade" branches must be deleted after use.
Solution
Add logic to use "develop" when "os-upgrade" does not exist while building the package.
Testing Done
challenge-response (has an "os-upgrade" branch): http://ops.jenkins-palashgandhi.dcol2.delphix.com/job/linux-pkg/job/os-upgrade/job/build-package/job/challenge-response/job/post-push/5/console.
Failures are expected due to pending fixes on the os-upgrade branch: https://github.com/delphix/challenge-response/pull/5
bcc (does not have an "os-upgrade" branch): http://ops.jenkins-palashgandhi.dcol2.delphix.com/job/linux-pkg/job/os-upgrade/job/build-package/job/bcc/job/post-push/5/console