Validate Jira ticket ID
AMD64
no language set
Git
fpbS60C410WepmZYNDipMKpziTy5DL7bBUN5Scs48viTP+4IW/f4M/Q6SPND
kYX+xAUW28IITbk73DpuDbMAaCo0u2a/kWqZ4Pe9K76sesGMD5mEMXu3R02l
rZRFprXUcP+3SZHU+bxpN74g3OJHkl2NYFiSBl2oIpXiqXWdIa45T1YUlNn/
soFx2IwWsGmdQR0Y+x2aR5l9YDU3O+tCVkBiDsxlaIxicPU1zkCUq8SxK6Nq
vK9K6wX0mHRehaeKys60YvFI89DTaERZmmFdtrXSWjNSF17o7/a9YoXPUoyt
nowR0txEWnq0cO/fxqVlufdqQT9rRzKJ+g7YuDBfsKXJJBNVku8C5CjyjDEF
4Dmwx1dnnQDNL3i1CfwaEUG7Zvs3dmFLlsFLVZHaDyW9nxGipMsQ8mvfKW3Z
P/CiKLun9hRtUB9x53FkhijgX9aNHpj8vWZ+ZAxlNiwsqosokMs+6DdVnGI8
JRouj0A84Nc61UtlbPH53/ouV8MwfczqCClRZi9FYQZ+XRU6KizzhLR4R6Zq
ivb8o2YrMSECHdYLMnZjJUi22UO4aW0S5ywzYebq2bmv7gY0xRiWUJi/FFbM
hpooXQoUkSN/KCJDpT00i1Wx1VDO7gdpxst+a2mgyP40uUakRp69gIZ3Exn4
4XIsRGFp1/V6YkyHug82qCk=[secure] RUN_JIRA_TICKET_ID_CHECK="true"
Scroll to End of Log
0.12s0.08s0.00s0.09sTopworker_info1Worker information2hostname: 84b7b97c-2a90-4fba-a9a4-49c71b75c51a@1.worker-com-65f46c97fb-t7h78.gce-production-13version: v6.2.24 https://github.com/travis-ci/worker/tree/ee57d650a7692c1ac03f74ac073d0fd150c9f0304instance: travis-job-efcd396a-9b53-49c2-b5a3-219320672e6a travis-ci-ubuntu-1804-1685534078-93d032cd (via amqp)5startup: 6.694269652ssystem_info7Build system information8Build language: generic9Build group: stable10Build dist: bionic11Build id: 26747701112Job id: 61387334813Runtime kernel version: 5.4.0-1106-gcp14travis-build version: f8fc948815Build image provisioning date and time16Wed May 31 12:30:27 UTC 202317Operating System Details18Distributor ID: Ubuntu19Description: Ubuntu 18.04.6 LTS20Release: 18.0421Codename: bionic22Systemd Version23systemd 23724Cookbooks Version252ffbb61 https://github.com/travis-ci/travis-cookbooks/tree/2ffbb6126git version27git version 2.40.128bash version29GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)30gcc version31gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.032docker version33Client: Docker Engine - Community34 Version: 24.0.235 API version: 1.41 (downgraded from 1.43)36 Go version: go1.20.437 Git commit: cb74dfc38 Built: Thu May 25 21:52:13 202339 OS/Arch: linux/amd6440 Context: default42Server: Docker Engine - Community43 Engine:44 Version: 20.10.945 API version: 1.41 (minimum version 1.12)46 Go version: go1.16.847 Git commit: 79ea9d348 Built: Mon Oct 4 16:06:34 202149 OS/Arch: linux/amd6450 Experimental: false51 containerd:52 Version: 1.6.2153 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f854 runc:55 Version: 1.1.756 GitCommit: v1.1.7-0-g860f06157 docker-init:58 Version: 0.19.059 GitCommit: de40ad060clang version61clang version 16.0.062jq version63jq-1.664bats version65Bats 0.4.066shellcheck version670.7.268shfmt version69v3.2.170ccache version713.4.172cmake version73cmake version 3.26.374heroku version75heroku/8.1.5 linux-x64 node-v16.19.076imagemagick version77Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org78md5deep version794.480mercurial version81version 5.382mysql version83mysql Ver 14.14 Distrib 5.7.42, for Linux (x86_64) using EditLine wrapper84openssl version85OpenSSL 1.1.1 11 Sep 201886packer version871.7.588postgresql client version89psql (PostgreSQL) 11.20 (Ubuntu 11.20-1.pgdg18.04+1)90ragel version91Ragel State Machine Compiler version 6.10 March 201792sudo version931.8.21p294gzip version95gzip 1.696zip version97Zip 3.098vim version99VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 18 2023 09:20:34)100iptables version101iptables v1.6.1102curl version103curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3104wget version105GNU Wget 1.19.4 built on linux-gnu.106rsync version107rsync version 3.1.2 protocol version 31108gimme version109v1.5.4110nvm version1110.39.3112perlbrew version113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.88114phpenv version115rbenv 1.2.0116rvm version117rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]118default ruby version119ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]120default python version121Python 3.7.13122ElasticSearch version1237.16.3124Installed Firefox version125firefox 63.0.1126MongoDB version127MongoDB 4.4.22128PhantomJS version1292.1.1130Pre-installed PostgreSQL versions1319.3.251329.4.261339.5.251349.6.24135Redis version136redis-server 6.0.6137Pre-installed Go versions1381.11.1139ant version140Apache Ant(TM) version 1.10.5 compiled on March 28 2019141mvn version142Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)143gradle version144Gradle 7.5.1!145lein version146Leiningen 2.10.0 on Java 11.0.15.1 OpenJDK 64-Bit Server VM147Pre-installed Node.js versions148v10.24.1149v12.22.12150v14.21.3151v16.15152v16.15.1153v16.20.0154v18.16.0155v4.9.1156v6.17.1157v8.17.0158phpenv versions159 system160 7.1161 7.1.33162 7.2163* 7.2.27 (set by /home/travis/.phpenv/version)164 7.3165 7.3.14166 7.4167 7.4.2168 hhvm-stable169 hhvm170composer --version171Composer version 1.9.2 2020-01-14 16:30:31172Pre-installed Ruby versions173ruby-2.5.9174ruby-2.7.6175ruby-3.1.21780.00s0.05s0.00s0.01s0.15s0.00s0.00s0.00s0.01s0.00s0.09s0.00s0.86s0.00s0.00s6.04s0.00s3.86s0.00s2.15sdocker_mtu_and_registry_mirrorsresolvconfgit.checkout1790.00s0.46s$ git clone --depth=50 --branch=test https://github.com/smokodon/test.git smokodon/test180Cloning into 'smokodon/test'...181remote: Enumerating objects: 151, done.182remote: Counting objects: 100% (151/151), done.183remote: Compressing objects: 100% (104/104), done.184remote: Total 151 (delta 48), reused 149 (delta 47), pack-reused 0185Receiving objects: 100% (151/151), 16.33 KiB | 1.81 MiB/s, done.186Resolving deltas: 100% (48/48), done.187$ cd smokodon/test188$ git checkout -qf fe391366a219eb07e55aace1441a915a7d3712861900.01s191Setting environment variables from .travis.yml192$ export JIRA_URL="https://agilepanda.atlassian.net/rest/api/2/issue"193$ export JIRA_USER="jira.demo.user@bigpanda.io"194$ export RUN_JIRA_TICKET_ID_CHECK="true"196$ bash -c 'echo $BASH_VERSION'1974.4.20(1)-release199Skipping the before_install step, as specified in the configuration.200Skipping the install step, as specified in the configuration.before_script201$ if [ "${RUN_JIRA_TICKET_ID_CHECK}" == "true" ] && ! [[ "${TRAVIS_BRANCH}" =~ ^snyk.* || "${TRAVIS_PULL_REQUEST_BRANCH}" =~ ^snyk.* ]] && ! [[ "${TRAVIS_COMMIT_MESSAGE}" =~ ^\[Snyk\].* ]]; then echo "Run validate Jira ticket ID yaml on commit message:"202 echo "${TRAVIS_COMMIT_MESSAGE}"204 # Check if the first word in the commit messege is a valid Jira ticket ID.205 if [[ "$TRAVIS_COMMIT_MESSAGE" =~ ([A-Z][A-Z0-9]+-[0-9]+) ]]; then207 # Inserts Jira ticket ID to JIRA_TICKET_ID from the commit message.208 JIRA_TICKET_ID=$(echo $TRAVIS_COMMIT_MESSAGE | grep -Eo '([A-Z][A-Z0-9]+-[0-9]+)' | head -n 1)209 echo "Found Jira ticket ID in the commit message: ${JIRA_TICKET_ID}."211 # Validate the found Jira ticket id is exist on Jira system.212 API_JIRA_TICKET_ID=`curl -s --request GET \213 --url "${JIRA_URL}/${JIRA_TICKET_ID}" \214 --user "${JIRA_USER}:${JIRA_API_KEY}" \215 --header "Accept: application/json" | jq '.key' | sed 's/"//g'`217 if [ "${API_JIRA_TICKET_ID}" == "${JIRA_TICKET_ID}" ]; then218 echo "Jira ticket ID found."219 else220 echo "The Jira ticket ID cannot be found, ensure that the ticket ID in the commit message is correct."221 sleep 2 # Let Travis finish printing.222 travis_terminate 1;223 fi225 else226 echo "Your commit message must contain a valid jira ticket ID! Example: <TEAM-1234 My commit>"227 sleep 2 # Let Travis finish printing.228 travis_terminate 1;229 fi231 else232 echo "skip validate Jira ticket ID yaml."233 fi234Run validate Jira ticket ID yaml on commit message:235test236Your commit message must contain a valid jira ticket ID! Example: <TEAM-1234 My commit>