Skip to content

Commit

Permalink
Quick updated to Jenkins (health check) launch script (#3033)
Browse files Browse the repository at this point in the history
# Description

This is a quick hotfix for small discrepancy in the Jenkins health check
launch script that runs in cron:

`gh -> "${GH}"`

# Type of change
- [x] Bug fix (fixes something broken)
- [ ] New feature (adds functionality)
- [ ] Maintenance (code refactor, clean-up, new CI test, etc.)

# Change characteristics
<!-- Choose YES or NO from each of the following and delete the other
-->
- Is this a breaking change (a change in existing functionality)? NO
- Does this change require a documentation update? NO
- Does this change require an update to any of the following submodules?
NO

# How is this tested

Ran in cron on Hercules and Orion

Co-authored-by: tmcguinness <[email protected]>
  • Loading branch information
1 parent 5cc20ec commit 3b2c4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/utils/launch_java_agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export GH="${HOME}/bin/gh"
[[ -f "${GH}" ]] || echo "gh is not installed in ${HOME}/bin"
${GH} --version

check_mark=$(gh auth status -t 2>&1 | grep "Token:" | awk '{print $1}') || true
check_mark=$("${GH}" auth status -t 2>&1 | grep "Token:" | awk '{print $1}') || true
if [[ "${check_mark}" != "" ]]; then
echo "gh not authenticating with emcbot token"
exit 1
Expand Down

0 comments on commit 3b2c4e2

Please sign in to comment.