CI: drop /tmp/artifacts upload to Gitlab
Contents of this folder are uploaded to S3 with shutzbot/upload_artifacts.sh Also fixing epel installation in the mentioned script.
This commit is contained in:
parent
c71ae8f455
commit
cf562dbb57
3 changed files with 4 additions and 7 deletions
|
|
@ -666,7 +666,7 @@ Manifest-diff:
|
||||||
GIT_DEPTH: 500
|
GIT_DEPTH: 500
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- "/tmp/artifacts"
|
- manifests.diff
|
||||||
|
|
||||||
SCHEDULED_CLOUD_CLEANER:
|
SCHEDULED_CLOUD_CLEANER:
|
||||||
stage: cleanup
|
stage: cleanup
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ ARTIFACTS=${ARTIFACTS:-/tmp/artifacts}
|
||||||
function greenprint {
|
function greenprint {
|
||||||
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
||||||
}
|
}
|
||||||
|
source /etc/os-release
|
||||||
# s3cmd is in epel, add if it's not present
|
# s3cmd is in epel, add if it's not present
|
||||||
if [[ $ID == rhel || $ID == centos ]] && ! rpm -q epel-release; then
|
if [[ $ID == rhel || $ID == centos ]] && ! rpm -q epel-release; then
|
||||||
curl -Ls --retry 5 --output /tmp/epel.rpm \
|
curl -Ls --retry 5 --output /tmp/epel.rpm \
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
artifacts="/tmp/artifacts"
|
|
||||||
mkdir -p "${artifacts}"
|
|
||||||
|
|
||||||
# Colorful output.
|
# Colorful output.
|
||||||
function greenprint {
|
function greenprint {
|
||||||
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
echo -e "\033[1;32m[$(date -Isecond)] ${1}\033[0m"
|
||||||
|
|
@ -90,10 +87,10 @@ if (( err == 0 )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
greenprint "Manifests differ"
|
greenprint "Manifests differ"
|
||||||
echo "${diff}" > "${artifacts}/manifests.diff"
|
echo "${diff}" > "manifests.diff"
|
||||||
greenprint "Saved diff in job artifacts"
|
greenprint "Saved diff in job artifacts"
|
||||||
|
|
||||||
artifacts_url="${CI_JOB_URL}/artifacts/browse/ci-artifacts"
|
artifacts_url="${CI_JOB_URL}/artifacts/browse"
|
||||||
|
|
||||||
cat > "${review_data_file}" << EOF
|
cat > "${review_data_file}" << EOF
|
||||||
{"body":"⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD ${head} with the ${basebranch} merge-base ${mergebase}). Please review the changes. The changes can be found in the [artifacts of the \`Manifest-diff\` job [0]](${artifacts_url}) as \`manifests.diff\`.\n\n${merge_base_fail}[0] ${artifacts_url}","event":"COMMENT"}
|
{"body":"⚠️ This PR introduces changes in at least one manifest (when comparing PR HEAD ${head} with the ${basebranch} merge-base ${mergebase}). Please review the changes. The changes can be found in the [artifacts of the \`Manifest-diff\` job [0]](${artifacts_url}) as \`manifests.diff\`.\n\n${merge_base_fail}[0] ${artifacts_url}","event":"COMMENT"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue