Exporting environment variables Exporting CI Exporting DISPLAY Exporting PAGER Exporting SEMAPHORE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SEMAPHORE_CACHE_ARCHIVE_METHOD Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_GIT_BRANCH Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_REPO_NAME Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_WORKING_BRANCH Exporting SEMAPHORE_JOB_CREATION_TIME Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SEMAPHORE_YAML_FILE_PATH Exporting SSH_PRIVATE_KEY_PATH Exporting TERM Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting /home/semaphore/.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.20.0/linux.tar toolbox/ toolbox/sem-semantic-release toolbox/sem-version toolbox/spc toolbox/sem-install toolbox/sem-service-check-params toolbox/sem-service toolbox/install-package toolbox/libchecksum toolbox/toolbox toolbox/sem-dockerize toolbox/when toolbox/README.md toolbox/install-toolbox toolbox/libcheckout toolbox/cache toolbox/enetwork toolbox/retry toolbox/test-results toolbox/system-metrics-collector toolbox/Dockerfile.dev toolbox/ssh-session-cli toolbox/artifact toolbox/sem-context retry installed ssh-session-cli installed cache installed sem-context installed sem-service installed sem-dockerize installed sem-service-check-params installed sem-semantic-release 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 Installing the enetwork 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 2526 Connecting to cache Running: (ssh-keyscan -p 29920 -H 116.202.32.43 >> /home/semaphore/.ssh/known_hosts || true) && ssh-add /home/semaphore/.ssh/semaphore_cache_key # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 116.202.32.43:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 Identity added: /home/semaphore/.ssh/semaphore_cache_key (/home/semaphore/.ssh/semaphore_cache_key) export GIT_LFS_SKIP_SMUDGE=1 checkout Performing shallow clone with depth: 50 Cloning into 'Nagios-Plugin-Kafka'... Warning: Permanently added 'github.com,140.82.121.3' (ECDSA) to the list of known hosts. remote: Enumerating objects: 299, done. remote: Counting objects: 0% (1/299) remote: Counting objects: 1% (3/299) remote: Counting objects: 2% (6/299) remote: Counting objects: 3% (9/299) remote: Counting objects: 4% (12/299) remote: Counting objects: 5% (15/299) remote: Counting objects: 6% (18/299) remote: Counting objects: 7% (21/299) remote: Counting objects: 8% (24/299) remote: Counting objects: 9% (27/299) remote: Counting objects: 10% (30/299) remote: Counting objects: 11% (33/299) remote: Counting objects: 12% (36/299) remote: Counting objects: 13% (39/299) remote: Counting objects: 14% (42/299) remote: Counting objects: 15% (45/299) remote: Counting objects: 16% (48/299) remote: Counting objects: 17% (51/299) remote: Counting objects: 18% (54/299) remote: Counting objects: 19% (57/299) remote: Counting objects: 20% (60/299) remote: Counting objects: 21% (63/299) remote: Counting objects: 22% (66/299) remote: Counting objects: 23% (69/299) remote: Counting objects: 24% (72/299) remote: Counting objects: 25% (75/299) remote: Counting objects: 26% (78/299) remote: Counting objects: 27% (81/299) remote: Counting objects: 28% (84/299) remote: Counting objects: 29% (87/299) remote: Counting objects: 30% (90/299) remote: Counting objects: 31% (93/299) remote: Counting objects: 32% (96/299) remote: Counting objects: 33% (99/299) remote: Counting objects: 34% (102/299) remote: Counting objects: 35% (105/299) remote: Counting objects: 36% (108/299) remote: Counting objects: 37% (111/299) remote: Counting objects: 38% (114/299) remote: Counting objects: 39% (117/299) remote: Counting objects: 40% (120/299) remote: Counting objects: 41% (123/299) remote: Counting objects: 42% (126/299) remote: Counting objects: 43% (129/299) remote: Counting objects: 44% (132/299) remote: Counting objects: 45% (135/299) remote: Counting objects: 46% (138/299) remote: Counting objects: 47% (141/299) remote: Counting objects: 48% (144/299) remote: Counting objects: 49% (147/299) remote: Counting objects: 50% (150/299) remote: Counting objects: 51% (153/299) remote: Counting objects: 52% (156/299) remote: Counting objects: 53% (159/299) remote: Counting objects: 54% (162/299) remote: Counting objects: 55% (165/299) remote: Counting objects: 56% (168/299) remote: Counting objects: 57% (171/299) remote: Counting objects: 58% (174/299) remote: Counting objects: 59% (177/299) remote: Counting objects: 60% (180/299) remote: Counting objects: 61% (183/299) remote: Counting objects: 62% (186/299) remote: Counting objects: 63% (189/299) remote: Counting objects: 64% (192/299) remote: Counting objects: 65% (195/299) remote: Counting objects: 66% (198/299) remote: Counting objects: 67% (201/299) remote: Counting objects: 68% (204/299) remote: Counting objects: 69% (207/299) remote: Counting objects: 70% (210/299) remote: Counting objects: 71% (213/299) remote: Counting objects: 72% (216/299) remote: Counting objects: 73% (219/299) remote: Counting objects: 74% (222/299) remote: Counting objects: 75% (225/299) remote: Counting objects: 76% (228/299) remote: Counting objects: 77% (231/299) remote: Counting objects: 78% (234/299) remote: Counting objects: 79% (237/299) remote: Counting objects: 80% (240/299) remote: Counting objects: 81% (243/299) remote: Counting objects: 82% (246/299) remote: Counting objects: 83% (249/299) remote: Counting objects: 84% (252/299) remote: Counting objects: 85% (255/299) remote: Counting objects: 86% (258/299) remote: Counting objects: 87% (261/299) remote: Counting objects: 88% (264/299) remote: Counting objects: 89% (267/299) remote: Counting objects: 90% (270/299) remote: Counting objects: 91% (273/299) remote: Counting objects: 92% (276/299) remote: Counting objects: 93% (279/299) remote: Counting objects: 94% (282/299) remote: Counting objects: 95% (285/299) remote: Counting objects: 96% (288/299) remote: Counting objects: 97% (291/299) remote: Counting objects: 98% (294/299) remote: Counting objects: 99% (297/299) remote: Counting objects: 100% (299/299) remote: Counting objects: 100% (299/299), done. remote: Compressing objects: 0% (1/164) remote: Compressing objects: 1% (2/164) remote: Compressing objects: 2% (4/164) remote: Compressing objects: 3% (5/164) remote: Compressing objects: 4% (7/164) remote: Compressing objects: 5% (9/164) remote: Compressing objects: 6% (10/164) remote: Compressing objects: 7% (12/164) remote: Compressing objects: 8% (14/164) remote: Compressing objects: 9% (15/164) remote: Compressing objects: 10% (17/164) remote: Compressing objects: 11% (19/164) remote: Compressing objects: 12% (20/164) remote: Compressing objects: 13% (22/164) remote: Compressing objects: 14% (23/164) remote: Compressing objects: 15% (25/164) remote: Compressing objects: 16% (27/164) remote: Compressing objects: 17% (28/164) remote: Compressing objects: 18% (30/164) remote: Compressing objects: 19% (32/164) remote: Compressing objects: 20% (33/164) remote: Compressing objects: 21% (35/164) remote: Compressing objects: 22% (37/164) remote: Compressing objects: 23% (38/164) remote: Compressing objects: 24% (40/164) remote: Compressing objects: 25% (41/164) remote: Compressing objects: 26% (43/164) remote: Compressing objects: 27% (45/164) remote: Compressing objects: 28% (46/164) remote: Compressing objects: 29% (48/164) remote: Compressing objects: 30% (50/164) remote: Compressing objects: 31% (51/164) remote: Compressing objects: 32% (53/164) remote: Compressing objects: 33% (55/164) remote: Compressing objects: 34% (56/164) remote: Compressing objects: 35% (58/164) remote: Compressing objects: 36% (60/164) remote: Compressing objects: 37% (61/164) remote: Compressing objects: 38% (63/164) remote: Compressing objects: 39% (64/164) remote: Compressing objects: 40% (66/164) remote: Compressing objects: 41% (68/164) remote: Compressing objects: 42% (69/164) remote: Compressing objects: 43% (71/164) remote: Compressing objects: 44% (73/164) remote: Compressing objects: 45% (74/164) remote: Compressing objects: 46% (76/164) remote: Compressing objects: 47% (78/164) remote: Compressing objects: 48% (79/164) remote: Compressing objects: 49% (81/164) remote: Compressing objects: 50% (82/164) remote: Compressing objects: 51% (84/164) remote: Compressing objects: 52% (86/164) remote: Compressing objects: 53% (87/164) remote: Compressing objects: 54% (89/164) remote: Compressing objects: 55% (91/164) remote: Compressing objects: 56% (92/164) remote: Compressing objects: 57% (94/164) remote: Compressing objects: 58% (96/164) remote: Compressing objects: 59% (97/164) remote: Compressing objects: 60% (99/164) remote: Compressing objects: 61% (101/164) remote: Compressing objects: 62% (102/164) remote: Compressing objects: 63% (104/164) remote: Compressing objects: 64% (105/164) remote: Compressing objects: 65% (107/164) remote: Compressing objects: 66% (109/164) remote: Compressing objects: 67% (110/164) remote: Compressing objects: 68% (112/164) remote: Compressing objects: 69% (114/164) remote: Compressing objects: 70% (115/164) remote: Compressing objects: 71% (117/164) remote: Compressing objects: 72% (119/164) remote: Compressing objects: 73% (120/164) remote: Compressing objects: 74% (122/164) remote: Compressing objects: 75% (123/164) remote: Compressing objects: 76% (125/164) remote: Compressing objects: 77% (127/164) remote: Compressing objects: 78% (128/164) remote: Compressing objects: 79% (130/164) remote: Compressing objects: 80% (132/164) remote: Compressing objects: 81% (133/164) remote: Compressing objects: 82% (135/164) remote: Compressing objects: 83% (137/164) remote: Compressing objects: 84% (138/164) remote: Compressing objects: 85% (140/164) remote: Compressing objects: 86% (142/164) remote: Compressing objects: 87% (143/164) remote: Compressing objects: 88% (145/164) remote: Compressing objects: 89% (146/164) remote: Compressing objects: 90% (148/164) remote: Compressing objects: 91% (150/164) remote: Compressing objects: 92% (151/164) remote: Compressing objects: 93% (153/164) remote: Compressing objects: 94% (155/164) remote: Compressing objects: 95% (156/164) remote: Compressing objects: 96% (158/164) remote: Compressing objects: 97% (160/164) remote: Compressing objects: 98% (161/164) remote: Compressing objects: 99% (163/164) remote: Compressing objects: 100% (164/164) remote: Compressing objects: 100% (164/164), done. Receiving objects: 0% (1/299) Receiving objects: 1% (3/299) Receiving objects: 2% (6/299) Receiving objects: 3% (9/299) Receiving objects: 4% (12/299) Receiving objects: 5% (15/299) Receiving objects: 6% (18/299) Receiving objects: 7% (21/299) Receiving objects: 8% (24/299) Receiving objects: 9% (27/299) Receiving objects: 10% (30/299) Receiving objects: 11% (33/299) Receiving objects: 12% (36/299) Receiving objects: 13% (39/299) Receiving objects: 14% (42/299) Receiving objects: 15% (45/299) Receiving objects: 16% (48/299) Receiving objects: 17% (51/299) Receiving objects: 18% (54/299) Receiving objects: 19% (57/299) Receiving objects: 20% (60/299) Receiving objects: 21% (63/299) Receiving objects: 22% (66/299) Receiving objects: 23% (69/299) Receiving objects: 24% (72/299) Receiving objects: 25% (75/299) Receiving objects: 26% (78/299) Receiving objects: 27% (81/299) Receiving objects: 28% (84/299) Receiving objects: 29% (87/299) Receiving objects: 30% (90/299) Receiving objects: 31% (93/299) Receiving objects: 32% (96/299) Receiving objects: 33% (99/299) Receiving objects: 34% (102/299) Receiving objects: 35% (105/299) Receiving objects: 36% (108/299) Receiving objects: 37% (111/299) Receiving objects: 38% (114/299) Receiving objects: 39% (117/299) Receiving objects: 40% (120/299) Receiving objects: 41% (123/299) Receiving objects: 42% (126/299) Receiving objects: 43% (129/299) Receiving objects: 44% (132/299) Receiving objects: 45% (135/299) Receiving objects: 46% (138/299) Receiving objects: 47% (141/299) Receiving objects: 48% (144/299) Receiving objects: 49% (147/299) Receiving objects: 50% (150/299) Receiving objects: 51% (153/299) Receiving objects: 52% (156/299) Receiving objects: 53% (159/299) Receiving objects: 54% (162/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 55% (165/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 56% (168/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 57% (171/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 58% (174/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 59% (177/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 60% (180/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 61% (183/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 62% (186/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 63% (189/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 64% (192/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 65% (195/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 66% (198/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 67% (201/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 68% (204/299), 116.00 KiB | 202.00 KiB/s remote: Total 299 (delta 155), reused 223 (delta 118), pack-reused 0 Receiving objects: 69% (207/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 70% (210/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 71% (213/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 72% (216/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 73% (219/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 74% (222/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 75% (225/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 76% (228/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 77% (231/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 78% (234/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 79% (237/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 80% (240/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 81% (243/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 82% (246/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 83% (249/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 84% (252/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 85% (255/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 86% (258/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 87% (261/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 88% (264/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 89% (267/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 90% (270/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 91% (273/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 92% (276/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 93% (279/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 94% (282/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 95% (285/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 96% (288/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 97% (291/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 98% (294/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 99% (297/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 100% (299/299), 116.00 KiB | 202.00 KiB/s Receiving objects: 100% (299/299), 174.34 KiB | 238.00 KiB/s, done. Resolving deltas: 0% (0/155) Resolving deltas: 1% (2/155) Resolving deltas: 2% (4/155) Resolving deltas: 3% (5/155) Resolving deltas: 4% (7/155) Resolving deltas: 5% (8/155) Resolving deltas: 6% (10/155) Resolving deltas: 7% (11/155) Resolving deltas: 8% (13/155) Resolving deltas: 9% (14/155) Resolving deltas: 10% (16/155) Resolving deltas: 11% (18/155) Resolving deltas: 12% (19/155) Resolving deltas: 13% (21/155) Resolving deltas: 14% (22/155) Resolving deltas: 15% (24/155) Resolving deltas: 16% (25/155) Resolving deltas: 17% (27/155) Resolving deltas: 18% (28/155) Resolving deltas: 19% (30/155) Resolving deltas: 20% (31/155) Resolving deltas: 21% (33/155) Resolving deltas: 22% (35/155) Resolving deltas: 23% (36/155) Resolving deltas: 24% (38/155) Resolving deltas: 25% (39/155) Resolving deltas: 26% (41/155) Resolving deltas: 27% (42/155) Resolving deltas: 28% (44/155) Resolving deltas: 29% (45/155) Resolving deltas: 30% (47/155) Resolving deltas: 31% (49/155) Resolving deltas: 32% (50/155) Resolving deltas: 33% (52/155) Resolving deltas: 34% (53/155) Resolving deltas: 36% (56/155) Resolving deltas: 37% (58/155) Resolving deltas: 38% (59/155) Resolving deltas: 39% (61/155) Resolving deltas: 40% (62/155) Resolving deltas: 41% (64/155) Resolving deltas: 42% (66/155) Resolving deltas: 43% (67/155) Resolving deltas: 44% (69/155) Resolving deltas: 45% (70/155) Resolving deltas: 46% (72/155) Resolving deltas: 47% (73/155) Resolving deltas: 48% (75/155) Resolving deltas: 49% (76/155) Resolving deltas: 50% (78/155) Resolving deltas: 51% (80/155) Resolving deltas: 52% (81/155) Resolving deltas: 53% (83/155) Resolving deltas: 54% (84/155) Resolving deltas: 55% (86/155) Resolving deltas: 56% (87/155) Resolving deltas: 57% (89/155) Resolving deltas: 58% (90/155) Resolving deltas: 59% (92/155) Resolving deltas: 60% (93/155) Resolving deltas: 61% (95/155) Resolving deltas: 62% (97/155) Resolving deltas: 63% (98/155) Resolving deltas: 64% (100/155) Resolving deltas: 65% (101/155) Resolving deltas: 67% (104/155) Resolving deltas: 68% (106/155) Resolving deltas: 69% (107/155) Resolving deltas: 70% (109/155) Resolving deltas: 71% (111/155) Resolving deltas: 72% (112/155) Resolving deltas: 73% (114/155) Resolving deltas: 74% (115/155) Resolving deltas: 75% (117/155) Resolving deltas: 76% (118/155) Resolving deltas: 77% (120/155) Resolving deltas: 78% (121/155) Resolving deltas: 79% (123/155) Resolving deltas: 80% (124/155) Resolving deltas: 81% (126/155) Resolving deltas: 82% (128/155) Resolving deltas: 83% (129/155) Resolving deltas: 84% (131/155) Resolving deltas: 85% (132/155) Resolving deltas: 86% (134/155) Resolving deltas: 87% (135/155) Resolving deltas: 88% (137/155) Resolving deltas: 89% (138/155) Resolving deltas: 90% (140/155) Resolving deltas: 91% (142/155) Resolving deltas: 92% (143/155) Resolving deltas: 93% (145/155) Resolving deltas: 94% (146/155) Resolving deltas: 95% (148/155) Resolving deltas: 96% (149/155) Resolving deltas: 97% (151/155) Resolving deltas: 98% (152/155) Resolving deltas: 99% (154/155) Resolving deltas: 100% (155/155) Resolving deltas: 100% (155/155), done. HEAD is now at f0b0eb7 fix: pom.xml to reduce vulnerabilities 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 # # Author: Hari Sekhon # Date: 2020-03-16 14:02:53 +0000 (Mon, 16 Mar 2020) # # vim:ts=2:sts=2:sw=2:et # # https://github.com/HariSekhon/Nagios-Plugin-Kafka # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish # # https://www.linkedin.com/in/HariSekhon # # ============================================================================ # # S e m a p h o r e C I # ============================================================================ # # https://docs.semaphoreci.com/reference/pipeline-yaml-reference/ version: v1.0 name: Nagios-Plugin-Kafka agent: machine: type: e1-standard-2 os_image: ubuntu1804 execution_time_limit: hours: 3 blocks: - name: Linux build run: when: "branch = 'master' AND change_in('/', {exclude: ['**/*.md']})" #execution_time_limit: # hours: 2 task: #env_vars: # $PATH selects /usr/bin/python and /usr/local/bin/pip which are mismatched versions of Python #- name: PYTHON # value: python3 #- name: PIP # value: pip3 prologue: commands: - cache restore # each job is separate and could be run on a separate machine so all steps must be together jobs: - name: build commands: - checkout - setup/ci_bootstrap.sh - make init - make ci - make test epilogue: commands: - cache store - name: Mac build run: when: "branch = 'master'" task: # because otherwise on Mac it uses /usr/bin/python (2.7) but /usr/local/bin/pip (python 3.8) #env_vars: # to match /usr/local/bin/pip version from $PATH #- name: PYTHON # value: python3 # must be quoted to force string, otherwise pipeline fails to run with this parsing error: # Error: [{"Type mismatch. Expected String but got Integer.", "#/blocks/1/task/env_vars/1/value"}] #- name: DEBUG # value: "1" agent: machine: type: a1-standard-4 os_image: macos-xcode12 prologue: commands: - cache restore # fix for: # pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. - brew install openssl - brew reinstall python - brew reinstall wget # avoid Mac SSL errors: # # ERROR: Loading command: install (LoadError) # dlopen(/Users/semaphore/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin18/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib # Referenced from: /Users/semaphore/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin18/openssl.bundle # Reason: image not found - /Users/semaphore/.rbenv/versions/2.5.1/lib/ruby/2.5.0/x86_64-darwin18/openssl.bundle # ERROR: While executing gem ... (NoMethodError) # undefined method `invoke_with_build_args' for nil:NilClass# # - rbenv global system # also considered this: # - for version in $(rbenv versions | grep -v system | sed 's/^\*//'); do yes | rbenv uninstall "$version"; rbenv install "$version"; done # # fix for python vs pip version mismatch - ln -svf -- /usr/local/bin/python3 /usr/local/bin/python jobs: - name: build commands: - checkout - make init - make ci - make test epilogue: commands: - cache store 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 2 locations. 001 | Location: [blocks 0 run when] | File: .semaphore/semaphore.yml | Expression: branch = 'master' AND change_in('/', {exclude: ['**/*.md']}) 002 | Location: [blocks 1 run when] | File: .semaphore/semaphore.yml | Expression: branch = 'master' Evaluating when expressions. 001 | When Expression: branch = 'master' AND change_in('/', {exclude: ['**/*.md']}) | | change_in(["/",{"exclude":["**/*.md"]}]) | Running git fetch origin +refs/heads/master:refs/heads/master | Running git diff --shortstat master...f0b0eb75b2fe2c032af050278d0c301e032cafde | Running git diff --name-only master...f0b0eb75b2fe2c032af050278d0c301e032cafde | | Comparing change_in with git diff | (match) pom.xml | | Result: true 002 | When Expression: branch = 'master' Exporting environment variables Exporting SEMAPHORE_JOB_RESULT 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/3930cae4-9ac6-4400-b409-0bc05cd16889-semaphore.yml.logs artifact push workflow $LOGS_FILE -d $ARTIFACT_LOG_DESTINATION [Jun 6 14:11:44.793] Successfully pushed artifact for current workflow. [Jun 6 14:11:44.794] * Local source: .semaphore/semaphore.yml.logs.jsonl. [Jun 6 14:11:44.794] * Remote destination: artifacts/workflows/aad05784-2bed-4758-aed0-b2b0f9e1d246/compilation/3930cae4-9ac6-4400-b409-0bc05cd16889-semaphore.yml.logs. export ARTIFACT_YAML_DESTINATION="compilation/$BASE_NAME" echo "Uploading $OUTPUT_FILE into $ARTIFACT_YAML_DESTINATION" Uploading .semaphore/semaphore.yml.output.yml into compilation/3930cae4-9ac6-4400-b409-0bc05cd16889-semaphore.yml artifact push workflow $OUTPUT_FILE -d $ARTIFACT_YAML_DESTINATION [Jun 6 14:11:45.349] Successfully pushed artifact for current workflow. [Jun 6 14:11:45.349] * Local source: .semaphore/semaphore.yml.output.yml. [Jun 6 14:11:45.349] * Remote destination: artifacts/workflows/aad05784-2bed-4758-aed0-b2b0f9e1d246/compilation/3930cae4-9ac6-4400-b409-0bc05cd16889-semaphore.yml.