mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
23 lines
509 B
Bash
Executable file
23 lines
509 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
last_commit=$(cat build/logs/last_commit)
|
|
|
|
result_file=$1
|
|
step=$2
|
|
|
|
if [ -s build/logs/${result_file} ]; then
|
|
res=$(cat build/logs/${result_file} 2>/dev/null)
|
|
else
|
|
res=2
|
|
fi
|
|
|
|
if [ $res -eq 0 ]; then
|
|
echo Send success
|
|
./set-status.sh 'success' 'The Bamboo build is a success' ${step}
|
|
elif [ $res -eq 1 ]; then
|
|
echo Send Failure
|
|
./set-status.sh 'failure' 'The Bamboo build failed' ${step}
|
|
else
|
|
echo Send error
|
|
./set-status.sh 'error' 'The Bamboo build is in error' ${step}
|
|
fi
|