mirror of
https://github.com/containers/podman
synced 2024-10-19 16:54:07 +00:00
Cirrus: IRC message when cirrus testing successful
Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
a50410467a
commit
0c17f2010a
|
@ -63,6 +63,8 @@ full_vm_testing_task:
|
|||
|
||||
integration_test_script: $SCRIPT_BASE/integration_test.sh
|
||||
|
||||
success_script: $SCRIPT_BASE/success.sh
|
||||
|
||||
|
||||
# This task build new images for future PR testing, but only after a PR merge.
|
||||
# These images save needing to install/setup the same environment to test every
|
||||
|
|
22
contrib/cirrus/success.sh
Executable file
22
contrib/cirrus/success.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
source $(dirname $0)/lib.sh
|
||||
|
||||
req_env_var "
|
||||
CIRRUS_TASK_NAME $CIRRUS_TASK_NAME
|
||||
CIRRUS_BRANCH $CIRRUS_BRANCH
|
||||
OS_RELEASE_ID $OS_RELEASE_ID
|
||||
OS_RELEASE_VER $OS_RELEASE_VER
|
||||
CIRRUS_REPO_CLONE_URL $CIRRUS_REPO_CLONE_URL
|
||||
"
|
||||
|
||||
REF_URL="$(echo $CIRRUS_REPO_CLONE_URL | sed 's/.git$//g')"
|
||||
if [[ "$CIRRUS_BRANCH" =~ "pull" ]]
|
||||
then
|
||||
REF_URL="$REF_URL/$CIRRUS_BRANCH" # pull request URL
|
||||
else
|
||||
REF_URL="$REF_URL/commits/$CIRRUS_BRANCH" # branch merge
|
||||
fi
|
||||
|
||||
ircmsg "Cirrus-CI $CIRRUS_TASK_NAME on $OS_RELEASE_ID-$OS_RELEASE_VER successful for $REF_URL"
|
Loading…
Reference in a new issue