Skip to content

Commit

Permalink
do not use indy-admin when downloading artifacts in staging pnc artif…
Browse files Browse the repository at this point in the history
…acts jobs
  • Loading branch information
rgdoliveira committed Sep 25, 2024
1 parent 564a6e1 commit 9f13be0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ def createStagingPath(path) {
}

def stageArtifact(url, path) {
// need to use indy-admin here as there's a caching bug which can make some downloads fail
def indyAdmin = url.replace("indy", "indy-admin")
println "[INFO] staging ${indyAdmin} to ${path}"
println "[INFO] staging ${url} to ${path}"

def localFileName = path.split('/').last()
sh "curl -s ${indyAdmin} -o ${localFileName}"
sh "curl -s ${url} -o ${localFileName}"
sh "chmod 664 ${localFileName}"

util.withKerberos('rhba-prod-keytab') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ def createStagingPath(path) {
}

def stageArtifact(url, path) {
// need to use indy-admin here as there's a caching bug which can make some downloads fail
def indyAdmin = url.replace("indy", "indy-admin")
println "[INFO] staging ${indyAdmin} to ${path}"
println "[INFO] staging ${url} to ${path}"

def localFileName = path.split('/').last()
sh "curl -s ${indyAdmin} -o ${localFileName}"
sh "curl -s ${url} -o ${localFileName}"
sh "chmod 664 ${localFileName}"

util.withKerberos('rhba-prod-keytab') {
Expand Down

0 comments on commit 9f13be0

Please sign in to comment.