CI: Enable IQE trigger for prod branch
Inserting different webhook url based on the deployed branch in the modified Jenkinsfile. Also renaming it to make more sense for us.
This commit is contained in:
parent
e8f66f1a1b
commit
48ea7c319e
2 changed files with 9 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ node {
|
|||
sh "python3 bustCache.py $EDGERC ${APP_NAME} ${BRANCH}"
|
||||
}
|
||||
// Trigger IQE pipelines
|
||||
sh ("curl -X POST -H 'Content-type: application/json' --data '{\"text\":\"Trigger IQE pipelines\"}' https://smee.io/IQDT9yRXsWlqbxpg")
|
||||
sh ("curl -X POST -H 'Content-type: application/json' --data '{\"text\":\"Trigger IQE pipelines\"}' WEBHOOK_PLACEHOLDER")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6,8 +6,10 @@ if [ "${TRAVIS_BRANCH}" = "main" ]; then
|
|||
fi
|
||||
|
||||
if [ "${TRAVIS_BRANCH}" = "stage-stable" ]; then
|
||||
# Use modified Jenkinsfile
|
||||
curl -o .travis/58231b16fdee45a03a4ee3cf94a9f2c3 https://raw.githubusercontent.com/RedHatInsights/image-builder-frontend/stage-stable/.travis/58231b16fdee45a03a4ee3cf94a9f2c3
|
||||
# Download modified Jenkinsfile
|
||||
curl -o .travis/58231b16fdee45a03a4ee3cf94a9f2c3 https://raw.githubusercontent.com/RedHatInsights/image-builder-frontend/stage-stable/.travis/Jenkinsfile
|
||||
# Insert stage webhook URL
|
||||
sed -i 's|WEBHOOK_PLACEHOLDER|https://smee.io/IQDT9yRXsWlqbxpg|g' 58231b16fdee45a03a4ee3cf94a9f2c3
|
||||
.travis/release.sh "stage-stable"
|
||||
fi
|
||||
|
||||
|
|
@ -16,5 +18,9 @@ if [ "${TRAVIS_BRANCH}" = "prod-beta" ]; then
|
|||
fi
|
||||
|
||||
if [ "${TRAVIS_BRANCH}" = "prod-stable" ]; then
|
||||
# Download modified Jenkinsfile
|
||||
curl -o .travis/58231b16fdee45a03a4ee3cf94a9f2c3 https://raw.githubusercontent.com/RedHatInsights/image-builder-frontend/stage-stable/.travis/Jenkinsfile
|
||||
# Insert prod webhook URL
|
||||
sed -i 's|WEBHOOK_PLACEHOLDER|https://smee.io/F9gZwIGELxwah4if|g' 58231b16fdee45a03a4ee3cf94a9f2c3
|
||||
.travis/release.sh "prod-stable"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue