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_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_CACHE_URL 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 https://github.com/semaphoreci/toolbox/releases/download/v1.14.0/linux.tar toolbox/ toolbox/toolbox toolbox/when toolbox/test-results toolbox/ssh-session-cli toolbox/install-package toolbox/sem-service-check-params toolbox/README.md toolbox/libcheckout toolbox/sem-dockerize toolbox/sem-install toolbox/retry toolbox/sem-version toolbox/system-metrics-collector toolbox/libchecksum toolbox/install-toolbox toolbox/cache toolbox/sem-service toolbox/spc toolbox/artifact 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 2396 Connecting to cache Running: ssh-keyscan -p 29920 -H 94.130.123.200 >> /home/semaphore/.ssh/known_hosts && ssh-add /home/semaphore/.ssh/semaphore_cache_key # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200: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 4851bfc configure monorepo 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: Initial Pipeline agent: machine: type: e1-standard-2 os_image: ubuntu1804 blocks: - name: Build sayhi task: jobs: - name: Build commands: - sem-version node 14.17.3 - checkout - yarn workspace sayhi build dependencies: [] run: when: change_in('/packages/sayhi') - name: Test sayhi task: jobs: - name: Lint commands: - yarn workspace sayhi lint - name: Unit tests commands: - yarn workspace sayhi test prologue: commands: - sem-version node 14.17.3 - checkout dependencies: - Build sayhi run: when: change_in('/packages/sayhi') - name: Build shared dependencies: [] task: jobs: - name: Build commands: - sem-version node 14.17.3 - checkout - yarn workspace shared build run: when: change_in('/packages/shared') - name: Tests shared dependencies: - Build shared task: prologue: commands: - sem-version node 14.17.3 - checkout jobs: - name: Lint commands: - yarn workspace shared lint - name: Unit tests commands: - yarn workspace shared test run: when: change_in('/packages/shared') 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: [blocks 0 run when] | File: .semaphore/semaphore.yml | Expression: change_in('/packages/sayhi') 002 | Location: [blocks 1 run when] | File: .semaphore/semaphore.yml | Expression: change_in('/packages/sayhi') 003 | Location: [blocks 2 run when] | File: .semaphore/semaphore.yml | Expression: change_in('/packages/shared') 004 | Location: [blocks 3 run when] | File: .semaphore/semaphore.yml | Expression: change_in('/packages/shared') Evaluating when expressions. 001 | When Expression: change_in('/packages/sayhi') | | change_in(["/packages/sayhi"]) | Running git fetch origin +refs/heads/master:refs/heads/master | Running git diff --shortstat master...4851bfc422b7b6345f56605577144c7a033e77be | Running git diff --name-only master...4851bfc422b7b6345f56605577144c7a033e77be | | Comparing change_in with git diff | (no match) .gitignore | (no match) .pnp.cjs | (match) .semaphore/semaphore.yml | | Result: true 002 | When Expression: change_in('/packages/sayhi') | | change_in(["/packages/sayhi"]) | Running git diff --shortstat master...4851bfc422b7b6345f56605577144c7a033e77be | | Comparing change_in with git diff | (no match) .gitignore | (no match) .pnp.cjs | (match) .semaphore/semaphore.yml | | Result: true 003 | When Expression: change_in('/packages/shared') | | change_in(["/packages/shared"]) | Running git diff --shortstat master...4851bfc422b7b6345f56605577144c7a033e77be | | Comparing change_in with git diff | (no match) .gitignore | (no match) .pnp.cjs | (match) .semaphore/semaphore.yml | | Result: true 004 | When Expression: change_in('/packages/shared') | | change_in(["/packages/shared"]) | Running git diff --shortstat master...4851bfc422b7b6345f56605577144c7a033e77be | | Comparing change_in with git diff | (no match) .gitignore | (no match) .pnp.cjs | (match) .semaphore/semaphore.yml | | Result: true 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/11babdef-0967-4da0-8c14-7ee68141663e-semaphore.yml.logs artifact push workflow $LOGS_FILE -d $ARTIFACT_LOG_DESTINATION 2021/08/23 17:04:51 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/11babdef-0967-4da0-8c14-7ee68141663e-semaphore.yml artifact push workflow $OUTPUT_FILE -d $ARTIFACT_YAML_DESTINATION 2021/08/23 17:04:51 successful push for current workflow