Skip to content

Fix artifactory login failures.#32

Merged
ikogan merged 1 commit into
mainfrom
cs/fix-adp-connect-artifactory
Jun 8, 2026
Merged

Fix artifactory login failures.#32
ikogan merged 1 commit into
mainfrom
cs/fix-adp-connect-artifactory

Conversation

@ikogan

@ikogan ikogan commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 15:54
@ikogan
ikogan merged commit acb3dcd into main Jun 8, 2026
4 of 5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the adp-connect.sh bootstrap script to reduce Artifactory authentication failures by clarifying the login instructions and adjusting how Artifactory credentials are collected and used during Docker registry login.

Changes:

  • Updated the Artifactory login instructions shown to users (explicitly calling out SAML SSO).
  • Adjusted token prompting to store the entered token before returning it from get_artifactory_token().
  • Changed Docker registry login flow to retry token entry/login when authentication fails.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adp-connect.sh
Comment on lines 189 to 192
instruction "${artifactory_info}"
gum input --password --width=80 --placeholder="Artifactory Token"
ARTIFACTORY_TOKEN="$(gum input --password --width=80 --placeholder="Artifactory Token")"

echo "${ARTIFACTORY_TOKEN}" | tr -d '[:space:]'
Comment thread adp-connect.sh
Comment on lines +1229 to +1239
while true; do
[[ -z "${ARTIFACTORY_TOKEN}" ]] && ARTIFACTORY_TOKEN="$(get_artifactory_token)"

if docker login -u "${USER_OHIOID}" --password-stdin docker."${DEFAULT_ARTIFACTORY_HOSTNAME}" <<< "${ARTIFACTORY_TOKEN}"; then
info "🎉 Successfully logged into Artifactory's Docker Registry!"
break
fi

warn "Artifactory login failed. Please try again."
ARTIFACTORY_TOKEN=""
done
@ikogan
ikogan deleted the cs/fix-adp-connect-artifactory branch June 22, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants