Skip to content

Commit

Permalink
applying patches running .ci/environments/update.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr committed Jun 20, 2023
1 parent 42b0cf3 commit ac058b2
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions dsl/seed/jenkinsfiles/Jenkinsfile.prod.prepare
Original file line number Diff line number Diff line change
Expand Up @@ -284,18 +284,9 @@ pipeline{

// if quarkusDowngradePrBranch has been created by update-quarkus-all job, checkout it
if (checkoutGitBranchIfExists(quarkusDowngradePrBranch, repoCredsId)) {
// apply patches from .ci/environments/quarkus-lts/patches
def patchesDirectory = '.ci/environments/quarkus-lts/patches'
def patches = findFiles(glob: "${patchesDirectory}/*")

if (patches && patches.size() > 0) {
patches.each { patch ->
echo "Applying patch ${patch}"
sh "git apply --whitespace=fix ${patch}"
}
} else {
echo "No patches found at ${patchesDirectory}"
}
// thefollowing script takes care of applying all patches needed when downgrading to Quarkus LTS
// i.e., it will apply all patches found under .ci/environments/quarkus-lts/patches
sh '.ci/environments/update.sh quarkus-lts'

pushIfChanged(quarkusDowngradePrBranch, repoCredsId, "Applied patches after Quarkus downgrade to ${getQuarkusVersion()}", "Quarkus LTS patches on ${quarkusDowngradePrBranch} have been applied")
}
Expand Down

0 comments on commit ac058b2

Please sign in to comment.