-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3795 from darinpope/derive-issue-id
Further simplify scripts by removing issueId parameter
- Loading branch information
Showing
7 changed files
with
29 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
release-manager-scripts/bom-release-issue-add-release-comment.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Error: This script requires exactly one argument." | ||
echo "./bom-release-issue-add-release-comment.sh <GitHub issue id>" | ||
exit 1 | ||
fi | ||
|
||
git checkout master | ||
git pull | ||
releaseName=$(gh release list --limit 1 --json isLatest,name --jq ".[].name") | ||
gh issue comment $1 --body "New release: [https://github.com/jenkinsci/bom/releases/tag/$releaseName](https://github.com/jenkinsci/bom/releases/tag/$releaseName)" | ||
issueNumber=$(gh issue list --limit 1 --state open --label release --json number --jq=".[].number") | ||
gh issue comment $issueNumber --body "New release: [https://github.com/jenkinsci/bom/releases/tag/$releaseName](https://github.com/jenkinsci/bom/releases/tag/$releaseName)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# -ne 1 ]]; then | ||
echo "Error: This script requires exactly one argument." | ||
echo "./bom-release-issue-close.sh <GitHub issue id>" | ||
exit 1 | ||
fi | ||
|
||
git checkout master | ||
git pull | ||
gh issue unpin $1 | ||
gh issue close $1 | ||
issueNumber=$(gh issue list --limit 1 --state open --label release --json number --jq=".[].number") | ||
gh issue unpin $issueNumber | ||
gh issue close $issueNumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# -ne 2 ]]; then | ||
echo "Error: This script requires exactly two arguments." | ||
echo "./bom-release-issue-job-running.sh <GitHub issue id> <Jenkins build number>" | ||
echo "Error: This script requires exactly one argument." | ||
echo "./bom-release-issue-job-running.sh <Jenkins build number>" | ||
exit 1 | ||
fi | ||
|
||
git checkout master | ||
git pull | ||
updatedBody=$(gh issue view $1 --json body --jq ".body" | sed 's/\[\ \] Trigger/[x] Trigger/' | sed "s/BUILDNUMBER/$2/") | ||
gh issue edit $1 --body $updatedBody | ||
issueNumber=$(gh issue list --limit 1 --state open --label release --json number --jq=".[].number") | ||
updatedBody=$(gh issue view $issueNumber --json body --jq ".body" | sed 's/\[\ \] Trigger/[x] Trigger/' | sed "s/BUILDNUMBER/$1/") | ||
gh issue edit $issueNumber --body $updatedBody |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters