Skip to content

Commit

Permalink
fix to work with MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jplayout committed Jan 17, 2025
1 parent 762b131 commit c91d32e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/init-lts-line
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ git commit -m "Towards ${baseline}.1"

# Create dedicated packaging branch
packaging="$(mktemp -d /tmp/jenkins-lts-rc-packaging-XXXXXXXX)"
trap "rm -rf '$packaging'" EXIT
# trap "rm -rf '$packaging'" EXIT
git clone [email protected]:jenkinsci/packaging.git "$packaging"
pushd "$packaging"
git checkout -b "$branch_name" master
Expand All @@ -48,9 +48,9 @@ git clone [email protected]:jenkins-infra/release.git "$release_repo"
pushd "$release_repo"
git checkout -b "stable-${baseline}"

sed -i'' "s/PACKAGING_GIT_BRANCH = 'master'/PACKAGING_GIT_BRANCH = 'stable-${baseline}'/g" Jenkinsfile.d/core/package
sed -i'' -e "s/PACKAGING_GIT_BRANCH = 'master'/PACKAGING_GIT_BRANCH = 'stable-${baseline}'/g" Jenkinsfile.d/core/package

sed -i'' "s/RELEASE_GIT_BRANCH=master/RELEASE_GIT_BRANCH=stable-${baseline}/g" profile.d/stable
sed -i'' -e "s/RELEASE_GIT_BRANCH=master/RELEASE_GIT_BRANCH=stable-${baseline}/g" profile.d/stable
echo "JENKINS_VERSION=${baseline}.1" >> profile.d/stable

git add Jenkinsfile.d/core/package profile.d/stable
Expand Down

0 comments on commit c91d32e

Please sign in to comment.