Skip to content
Snippets Groups Projects
Verified Commit 8d89b449 authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

add run.sh

parents
Branches
No related tags found
No related merge requests found
run.sh 0 → 100644
#!/usr/bin/env bash
JOB_ID="runner-$CUSTOM_ENV_CI_RUNNER_ID-project-$CUSTOM_ENV_CI_PROJECT_ID-concurrent-$CUSTOM_ENV_CI_CONCURRENT_PROJECT_ID-$CUSTOM_ENV_CI_JOB_ID"
set -eo pipefail
# trap any error, and mark it as a system failure.
trap "exit $SYSTEM_FAILURE_EXIT_CODE" ERR
echo "Running in $JOB_ID"
# This will run the script generated by GitLab Runner by sending the
# content of the script to the container via STDIN.
cat < "${1}"
if [ $? -ne 0 ]; then
# Exit using the variable, to make the build as failure in GitLab CI.
exit $BUILD_FAILURE_EXIT_CODE
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment