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"
Raw log
Scroll to End of Log
0.12s0.08s0.00s0.09s
worker_info
1Worker information
2hostname: 84b7b97c-2a90-4fba-a9a4-49c71b75c51a@1.worker-com-65f46c97fb-t7h78.gce-production-1
3version: v6.2.24 https://github.com/travis-ci/worker/tree/ee57d650a7692c1ac03f74ac073d0fd150c9f030
4instance: travis-job-efcd396a-9b53-49c2-b5a3-219320672e6a travis-ci-ubuntu-1804-1685534078-93d032cd (via amqp)
5startup: 6.694269652s
60.19s0.01s0.00s0.01s
system_info
7Build system information
8Build language: generic
9Build group: stable
10Build dist: bionic
11Build id: 267477011
12Job id: 613873348
13Runtime kernel version: 5.4.0-1106-gcp
14travis-build version: f8fc9488
15Build image provisioning date and time
16Wed May 31 12:30:27 UTC 2023
17Operating System Details
18Distributor ID: Ubuntu
19Description: Ubuntu 18.04.6 LTS
20Release: 18.04
21Codename: bionic
22Systemd Version
23systemd 237
24Cookbooks Version
252ffbb61 https://github.com/travis-ci/travis-cookbooks/tree/2ffbb61
26git version
27git version 2.40.1
28bash version
29GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
30gcc version
31gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
32docker version
33Client: Docker Engine - Community
34 Version: 24.0.2
35 API version: 1.41 (downgraded from 1.43)
36 Go version: go1.20.4
37 Git commit: cb74dfc
38 Built: Thu May 25 21:52:13 2023
39 OS/Arch: linux/amd64
40 Context: default
42Server: Docker Engine - Community
43 Engine:
44 Version: 20.10.9
45 API version: 1.41 (minimum version 1.12)
46 Go version: go1.16.8
47 Git commit: 79ea9d3
48 Built: Mon Oct 4 16:06:34 2021
49 OS/Arch: linux/amd64
50 Experimental: false
51 containerd:
52 Version: 1.6.21
53 GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
54 runc:
55 Version: 1.1.7
56 GitCommit: v1.1.7-0-g860f061
57 docker-init:
58 Version: 0.19.0
59 GitCommit: de40ad0
60clang version
61clang version 16.0.0
62jq version
63jq-1.6
64bats version
65Bats 0.4.0
66shellcheck version
670.7.2
68shfmt version
69v3.2.1
70ccache version
713.4.1
72cmake version
73cmake version 3.26.3
74heroku version
75heroku/8.1.5 linux-x64 node-v16.19.0
76imagemagick version
77Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
78md5deep version
794.4
80mercurial version
81version 5.3
82mysql version
83mysql Ver 14.14 Distrib 5.7.42, for Linux (x86_64) using EditLine wrapper
84openssl version
85OpenSSL 1.1.1 11 Sep 2018
86packer version
871.7.5
88postgresql client version
89psql (PostgreSQL) 11.20 (Ubuntu 11.20-1.pgdg18.04+1)
90ragel version
91Ragel State Machine Compiler version 6.10 March 2017
92sudo version
931.8.21p2
94gzip version
95gzip 1.6
96zip version
97Zip 3.0
98vim version
99VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 18 2023 09:20:34)
100iptables version
101iptables v1.6.1
102curl version
103curl 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.3
104wget version
105GNU Wget 1.19.4 built on linux-gnu.
106rsync version
107rsync version 3.1.2 protocol version 31
108gimme version
109v1.5.4
110nvm version
1110.39.3
112perlbrew version
113/home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.88
114phpenv version
115rbenv 1.2.0
116rvm version
117rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
118default ruby version
119ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [x86_64-linux]
120default python version
121Python 3.7.13
122ElasticSearch version
1237.16.3
124Installed Firefox version
125firefox 63.0.1
126MongoDB version
127MongoDB 4.4.22
128PhantomJS version
1292.1.1
130Pre-installed PostgreSQL versions
1319.3.25
1329.4.26
1339.5.25
1349.6.24
135Redis version
136redis-server 6.0.6
137Pre-installed Go versions
1381.11.1
139ant version
140Apache Ant(TM) version 1.10.5 compiled on March 28 2019
141mvn version
142Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
143gradle version
144Gradle 7.5.1!
145lein version
146Leiningen 2.10.0 on Java 11.0.15.1 OpenJDK 64-Bit Server VM
147Pre-installed Node.js versions
148v10.24.1
149v12.22.12
150v14.21.3
151v16.15
152v16.15.1
153v16.20.0
154v18.16.0
155v4.9.1
156v6.17.1
157v8.17.0
158phpenv versions
159 system
160 7.1
161 7.1.33
162 7.2
163* 7.2.27 (set by /home/travis/.phpenv/version)
164 7.3
165 7.3.14
166 7.4
167 7.4.2
168 hhvm-stable
169 hhvm
170composer --version
171Composer version 1.9.2 2020-01-14 16:30:31
172Pre-installed Ruby versions
173ruby-2.5.9
174ruby-2.7.6
175ruby-3.1.2
1770.02s0.01s0.73s2.79s0.06s0.00s0.04s0.00s0.04s0.01s0.03s0.01s0.01s0.00s0.42sOK
1780.00s0.05s0.00s0.01s0.15s0.00s0.00s0.00s0.01s0.00s0.09s0.00s0.86s0.00s0.00s6.04s0.00s3.86s0.00s2.15s
docker_mtu_and_registry_mirrors
resolvconf
git.checkout
1790.00s0.46s$ git clone --depth=50 --branch=test https://github.com/smokodon/test.git smokodon/test
180Cloning 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 0
185Receiving objects: 100% (151/151), 16.33 KiB | 1.81 MiB/s, done.
186Resolving deltas: 100% (48/48), done.
187$ cd smokodon/test
188$ git checkout -qf fe391366a219eb07e55aace1441a915a7d371286
1900.01s
191Setting environment variables from .travis.yml
192$ 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)-release
199Skipping the before_install step, as specified in the configuration.
200Skipping the install step, as specified in the configuration.
before_script
201$ 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]+) ]]; then
207 # 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}" ]; then
218 echo "Jira ticket ID found."
219 else
220 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 fi
225 else
226 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 fi
231 else
232 echo "skip validate Jira ticket ID yaml."
233 fi
234Run validate Jira ticket ID yaml on commit message:
235test
236Your commit message must contain a valid jira ticket ID! Example: <TEAM-1234 My commit>
Top