Update Jenkinsfile

There were some changes in the insights-frontend-build-common that we
were missing.
This commit is contained in:
Jakub Rusz 2023-04-05 10:50:54 +02:00 committed by Sanne Raymaekers
parent 4fd6233b56
commit 531df017cd

11
.travis/Jenkinsfile vendored
View file

@ -10,7 +10,7 @@ node {
passphraseVariable: "",
usernameVariable: "")]) {
String APP_NAME = "image-builder"
String APP_NAME = "__APP_NAME__"
String BRANCH = env.BRANCH_NAME.replaceAll("origin/", "")
if (BRANCH == "prod-stable") {
@ -40,21 +40,18 @@ node {
AKAMAI_BASE_PATH = "822386"
AKAMAI_APP_PATH = "/${AKAMAI_BASE_PATH}/${PREFIX}apps/${APP_NAME}"
configFileProvider([configFile(fileId: "9f0c91bc-4feb-4076-9f3e-13da94ff3cef", variable: "AKAMAI_HOST_KEY")]) {
sh """
sh """
eval `ssh-agent`
ssh-add \"$privateKeyFile\"
cp $AKAMAI_HOST_KEY ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts ~/.ssh/config
n=0
until [ \$n -ge 10 ]
do
rsync -arv -e \"ssh -2\" --delete-after * sshacs@cloud-unprotected.upload.akamai.com:${AKAMAI_APP_PATH} && break
rsync -arv -e \"ssh -2 -o StrictHostKeyChecking=no\" * sshacs@cloud-unprotected.upload.akamai.com:${AKAMAI_APP_PATH} && break
n=\$[\$n+1]
sleep 10
done
"""
}
"""
//Clear the cache for the app being deployed
openShiftUtils.withJnlpNode(