Exporting environment variables Exporting TERM Exporting PAGER Exporting DISPLAY Exporting CI Exporting SEMAPHORE Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SSH_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_NEW_CLI Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_BRANCH Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting SEMAPHORE_YAML_FILE_PATH Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting .ssh/id_rsa with file mode 0600 Setting up the Semaphore toolbox Running: dowloadPath=$(curl -s -L --retry 5 http://packages.semaphoreci.com/toolbox/linux) && echo $dowloadPath && curl -s -L --retry 5 --connect-timeout 3 $dowloadPath -o /tmp/toolbox.tar && tar -xvf /tmp/toolbox.tar && mv toolbox ~/.toolbox && bash ~/.toolbox/install-toolbox && source ~/.toolbox/toolbox && echo 'source ~/.toolbox/toolbox' >> ~/.bash_profile && if [ -f /etc/init.d/xvfb ]; then /etc/init.d/xvfb start; fi http://packages.semaphoreci.com/toolbox/releases/download/v1.15.0/linux.tar toolbox/ toolbox/sem-version toolbox/system-metrics-collector toolbox/sem-service toolbox/ssh-session-cli toolbox/test-results toolbox/libcheckout toolbox/retry toolbox/cache toolbox/toolbox toolbox/README.md toolbox/sem-dockerize toolbox/new-cache toolbox/libchecksum toolbox/when toolbox/install-package toolbox/install-toolbox toolbox/sem-install toolbox/artifact toolbox/spc toolbox/sem-service-check-params retry installed ssh-session-cli installed cache installed sem-service installed sem-dockerize installed sem-service-check-params installed install-package installed Installing the artifacts CLI artifacts installed Installing the test results CLI test-results installed Installing the SPC CLI spc installed Installing the when CLI when installed Starting to collect System Metrics in /tmp/system-metrics Starting virtual X frame buffer: Xvfb. Starting an ssh-agent Running: eval `ssh-agent` && echo 'eval $(ssh-agent) >/dev/null' >> ~/.bash_profile && echo 'yes' > /tmp/sempahore-user-commands-have-started Agent pid 2582 Connecting to cache Running: ssh-keyscan -p 29920 -H 46.4.218.107 >> /home/semaphore/.ssh/known_hosts && ssh-add /home/semaphore/.ssh/semaphore_cache_key # 46.4.218.107:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 46.4.218.107:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 46.4.218.107:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 Identity added: /home/semaphore/.ssh/semaphore_cache_key (/home/semaphore/.ssh/semaphore_cache_key) checkout Performing shallow clone with depth: 50 HEAD is now at f2025e8 Merge pull request #6 from srz-zumix/feature/fix_codefresh export INPUT_FILE="$SEMAPHORE_YAML_FILE_PATH" export OUTPUT_FILE="${SEMAPHORE_YAML_FILE_PATH}.output.yml" export LOGS_FILE="${SEMAPHORE_YAML_FILE_PATH}.logs.jsonl" cat $INPUT_FILE version: v1.0 name: ci-parallel agent: machine: type: e1-standard-2 os_image: ubuntu1804 auto_cancel: running: when: "branch != 'master'" queued: when: "branch = 'master'" global_job_config: prologue: commands: - checkout env_vars: - name: TYPE value: step - name: DRYRUN value: "true" blocks: - name: "parallel 1" dependencies: [] run: &run-condition when: "change_in(['/.ci/', './semaphore.yml'])" task: secrets: - name: INTEGROMAT_WEBHOOK_URL_PARALLEL jobs: - name: parallel parallelism: 4 commands: - export JOB_NAME_PREFIX=${SEMAPHORE_JOB_NAME} - export PARALLEL_NO=${SEMAPHORE_JOB_INDEX} - ./.ci/report.sh - name: "parallel 2" dependencies: [] run: *run-condition task: secrets: - name: INTEGROMAT_WEBHOOK_URL_PARALLEL jobs: - name: parallel parallelism: 4 commands: - export JOB_NAME_PREFIX=${SEMAPHORE_JOB_NAME} - export PARALLEL_NO=$((${SEMAPHORE_JOB_INDEX} + 4)) - ./.ci/report.sh echo "Compiling $INPUT_FILE into $OUTPUT_FILE and storring logs to $LOGS_FILE" Compiling .semaphore/semaphore.yml into .semaphore/semaphore.yml.output.yml and storring logs to .semaphore/semaphore.yml.logs.jsonl spc compile --input $INPUT_FILE --output $OUTPUT_FILE --logs $LOGS_FILE Evaluating parameters expressions in .semaphore/semaphore.yml. Found parameters expressions at 0 locations. Substituting parameters with their values. Evaluating change_in expressions in .semaphore/semaphore.yml. Found when expressions at 4 locations. 001 | Location: [auto_cancel queued when] | File: .semaphore/semaphore.yml | Expression: branch = 'master' 002 | Location: [auto_cancel running when] | File: .semaphore/semaphore.yml | Expression: branch != 'master' 003 | Location: [blocks 0 run when] | File: .semaphore/semaphore.yml | Expression: change_in(['/.ci/', './semaphore.yml']) 004 | Location: [blocks 1 run when] | File: .semaphore/semaphore.yml | Expression: change_in(['/.ci/', './semaphore.yml']) Evaluating when expressions. 001 | When Expression: branch = 'master' 002 | When Expression: branch != 'master' 003 | When Expression: change_in(['/.ci/', './semaphore.yml']) | | change_in([["/.ci/","./semaphore.yml"]]) | Running git diff --shortstat 1edea89b010a8b6c79fd167a902a5c559160af9a...f2025e882e0829aca527843601b899f045129ed5 | Running git diff --name-only 1edea89b010a8b6c79fd167a902a5c559160af9a...f2025e882e0829aca527843601b899f045129ed5 | | Comparing change_in with git diff | (no match) codefresh.yml | | Result: false 004 | When Expression: change_in(['/.ci/', './semaphore.yml']) | | change_in([["/.ci/","./semaphore.yml"]]) | Running git diff --shortstat 1edea89b010a8b6c79fd167a902a5c559160af9a...f2025e882e0829aca527843601b899f045129ed5 | | Comparing change_in with git diff | (no match) codefresh.yml | | Result: false export SEMAPHORE_JOB_RESULT=passed export BASE_NAME=$SEMAPHORE_PIPELINE_ID-$(basename $INPUT_FILE) export ARTIFACT_LOG_DESTINATION="compilation/$BASE_NAME.logs" echo "Uploading $LOGS_FILE into $ARTIFACT_LOG_DESTINATION" Uploading .semaphore/semaphore.yml.logs.jsonl into compilation/80aa6c61-a059-4c81-acbc-3bdd3d23cbc8-semaphore.yml.logs artifact push workflow $LOGS_FILE -d $ARTIFACT_LOG_DESTINATION 2021/12/03 01:09:57 successful push for current workflow export ARTIFACT_YAML_DESTINATION="compilation/$BASE_NAME" echo "Uploading $OUTPUT_FILE into $ARTIFACT_YAML_DESTINATION" Uploading .semaphore/semaphore.yml.output.yml into compilation/80aa6c61-a059-4c81-acbc-3bdd3d23cbc8-semaphore.yml artifact push workflow $OUTPUT_FILE -d $ARTIFACT_YAML_DESTINATION 2021/12/03 01:09:57 successful push for current workflow