ci/nightly: report composer NVR in slack
Storing composer NVR in a file after it's installed and reporting on Slack. Also reducing duplications of artifacts in .gitlab-ci.yml
This commit is contained in:
parent
9c80a17ee5
commit
8331af3ffd
3 changed files with 7 additions and 35 deletions
|
|
@ -18,6 +18,8 @@ stages:
|
||||||
paths:
|
paths:
|
||||||
- journal-log.gpg
|
- journal-log.gpg
|
||||||
- ci-artifacts
|
- ci-artifacts
|
||||||
|
- "*.repo"
|
||||||
|
- COMPOSER_NVR
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
.terraform:
|
.terraform:
|
||||||
|
|
@ -57,10 +59,6 @@ RPM:
|
||||||
after_script:
|
after_script:
|
||||||
- schutzbot/update_github_status.sh update
|
- schutzbot/update_github_status.sh update
|
||||||
- schutzbot/save_journal.sh
|
- schutzbot/save_journal.sh
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
when: always
|
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- RUNNER:
|
- RUNNER:
|
||||||
|
|
@ -86,9 +84,6 @@ Build -tests RPM for RHEL:
|
||||||
after_script:
|
after_script:
|
||||||
- schutzbot/update_github_status.sh update
|
- schutzbot/update_github_status.sh update
|
||||||
- schutzbot/save_journal.sh
|
- schutzbot/save_journal.sh
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
- <<: *RPM_RUNNERS_RHEL
|
- <<: *RPM_RUNNERS_RHEL
|
||||||
|
|
@ -165,11 +160,6 @@ Base:
|
||||||
- aws/rhel-9.0-nightly-x86_64
|
- aws/rhel-9.0-nightly-x86_64
|
||||||
- aws/rhel-9.0-nightly-aarch64
|
- aws/rhel-9.0-nightly-aarch64
|
||||||
INTERNAL_NETWORK: ["true"]
|
INTERNAL_NETWORK: ["true"]
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
- "*.repo"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
Manifests:
|
Manifests:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
@ -186,11 +176,6 @@ Manifests:
|
||||||
- RUNNER:
|
- RUNNER:
|
||||||
- aws/rhel-9.0-nightly-x86_64
|
- aws/rhel-9.0-nightly-x86_64
|
||||||
INTERNAL_NETWORK: ["true"]
|
INTERNAL_NETWORK: ["true"]
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
- "*.repo"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
Regression:
|
Regression:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
@ -219,12 +204,6 @@ Regression:
|
||||||
- aws/rhel-9.0-nightly-x86_64
|
- aws/rhel-9.0-nightly-x86_64
|
||||||
- aws/rhel-9.0-nightly-aarch64
|
- aws/rhel-9.0-nightly-aarch64
|
||||||
INTERNAL_NETWORK: ["true"]
|
INTERNAL_NETWORK: ["true"]
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
- "*.repo"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
|
|
||||||
Image Tests:
|
Image Tests:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
@ -244,12 +223,6 @@ Image Tests:
|
||||||
- aws/rhel-9.0-nightly-x86_64
|
- aws/rhel-9.0-nightly-x86_64
|
||||||
- aws/rhel-9.0-nightly-aarch64
|
- aws/rhel-9.0-nightly-aarch64
|
||||||
INTERNAL_NETWORK: ["true"]
|
INTERNAL_NETWORK: ["true"]
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
- "*.repo"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
|
|
||||||
Test Case Generation:
|
Test Case Generation:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
@ -264,11 +237,6 @@ Test Case Generation:
|
||||||
- RUNNER:
|
- RUNNER:
|
||||||
- aws/fedora-34-x86_64
|
- aws/fedora-34-x86_64
|
||||||
INTERNAL_NETWORK: ["true"]
|
INTERNAL_NETWORK: ["true"]
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- journal-log.gpg
|
|
||||||
- "*.repo"
|
|
||||||
when: always
|
|
||||||
|
|
||||||
OSTree:
|
OSTree:
|
||||||
stage: test
|
stage: test
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,9 @@ retry sudo dnf -y upgrade selinux-policy
|
||||||
# Note: installing only -tests to catch missing dependencies
|
# Note: installing only -tests to catch missing dependencies
|
||||||
retry sudo dnf -y install "${PROJECT}-tests"
|
retry sudo dnf -y install "${PROJECT}-tests"
|
||||||
|
|
||||||
|
# Save osbuild-composer NVR to a file to be used as CI artifact
|
||||||
|
rpm -q osbuild-composer > COMPOSER_NVR
|
||||||
|
|
||||||
if [ "${NIGHTLY:=false}" == "true" ]; then
|
if [ "${NIGHTLY:=false}" == "true" ]; then
|
||||||
# check if we've installed the osbuild-composer RPM from the nightly tree
|
# check if we've installed the osbuild-composer RPM from the nightly tree
|
||||||
# under test or happen to install a newer version from one of the S3 repositories
|
# under test or happen to install a newer version from one of the S3 repositories
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,8 @@
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
COMPOSE_ID=$(cat COMPOSE_ID)
|
COMPOSE_ID=$(cat COMPOSE_ID)
|
||||||
MESSAGE="\"Nightly pipeline execution on *$COMPOSE_ID* finished with status *$1* $2 \n QE: @atodorov, @jrusz, @jabia \n Link to results: $CI_PIPELINE_URL \""
|
COMPOSER_NVR=$(cat COMPOSER_NVR)
|
||||||
|
MESSAGE="\"Nightly pipeline execution on *$COMPOSE_ID* with *$COMPOSER_NVR* finished with status *$1* $2 \n QE: @atodorov, @jrusz, @jabia \n Link to results: $CI_PIPELINE_URL \""
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue