Skip to content

Instantly share code, notes, and snippets.

@firemanxbr
Created May 9, 2018 14:10
Show Gist options
  • Save firemanxbr/61c908f19c0991d85def6436529594f3 to your computer and use it in GitHub Desktop.
Save firemanxbr/61c908f19c0991d85def6436529594f3 to your computer and use it in GitHub Desktop.
Triggered by CI message.
Obtained triggering/Jenkinsfile from git https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
Running in Durability level: MAX_SURVIVABILITY
Loading library cico-pipeline-library@master
Attempting to resolve master from remote references...
> git --version # timeout=10
> git ls-remote -h -t https://github.com/CentOS/cico-pipeline-library # timeout=10
Found match: refs/heads/master revision fbf47bf0b196e6225c76fb744050673f99461543
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/CentOS/cico-pipeline-library # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/CentOS/cico-pipeline-library
> git --version # timeout=10
> git fetch --no-tags --progress https://github.com/CentOS/cico-pipeline-library +refs/heads/*:refs/remotes/origin/*
Checking out Revision fbf47bf0b196e6225c76fb744050673f99461543 (master)
> git config core.sparsecheckout # timeout=10
> git checkout -f fbf47bf0b196e6225c76fb744050673f99461543
Commit message: "Merge pull request #19 from scoheb/openshiftUtils"
> git rev-list --no-walk fbf47bf0b196e6225c76fb744050673f99461543 # timeout=10
[Pipeline] library
Loading library cvp-library@stage
Attempting to resolve stage from remote references...
> git --version # timeout=10
> git ls-remote -h -t https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
Found match: refs/heads/stage revision 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
> git --version # timeout=10
> git fetch --no-tags --progress https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git +refs/heads/*:refs/remotes/origin/* +refs/merge-requests/*/head:refs/remotes/origin/merge-requests/*
Checking out Revision 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96 (stage)
> git config core.sparsecheckout # timeout=10
> git checkout -f 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96
Commit message: "change min and default cpu to be 0"
> git rev-list --no-walk 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96 # timeout=10
[Pipeline] echo
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/jobs/cvp-trigger/workspace
[Pipeline] {
[Pipeline] _OcContextInit
[Pipeline] readFile
[Pipeline] readFile
[Pipeline] _OcAction
[Pipeline] }
[Pipeline] // node
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/jobs/cvp-trigger/workspace
[Pipeline] {
[Pipeline] _OcContextInit
[Pipeline] readFile
[Pipeline] }
[Pipeline] // node
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
cvp-slave-42618fab-c717-4e8b-9bac-c632ca78f0ea-jdm7s-sxhkz is offline
Agent cvp-slave-42618fab-c717-4e8b-9bac-c632ca78f0ea-jdm7s-sxhkz is provisioned from template Kubernetes Pod Template
Agent specification [Kubernetes Pod Template] (cvp-slave-42618fab-c717-4e8b-9bac-c632ca78f0ea):
* [jnlp] 172.30.1.1:5000/cvp/jenkins-cvp-slave:stable
Running on cvp-slave-42618fab-c717-4e8b-9bac-c632ca78f0ea-jdm7s-sxhkz in /home/jenkins/workspace/cvp-trigger
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
Cloning the remote Git repository
Cloning repository https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
> git init /home/jenkins/workspace/cvp-trigger # timeout=10
Fetching upstream changes from https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
> git --version # timeout=10
> git fetch --tags --progress https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
Fetching upstream changes from https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
> git fetch --tags --progress https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/stage^{commit} # timeout=10
Checking out Revision 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96 (origin/stage)
> git config core.sparsecheckout # timeout=10
> git checkout -f 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96
Commit message: "change min and default cpu to be 0"
[Pipeline] }
[Pipeline] // stage
[Pipeline] container
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Parse Brew Message)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
09:00:58 Git Repo : git://pkgs.devel.redhat.com/containers/fuse-ignite-upgrade?#c2aa131f0418700aa029b6593cbbc1f14b6f266e
[Pipeline] echo
09:00:58 Git Branch : fuse-7.0-ignite-openshift-rhel-7
[Pipeline] echo
09:00:58 Payload name : unknown
[Pipeline] echo
09:00:58 Images : brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-upgrade:fuse-7.0-ignite-openshift-rhel-7-containers-candidate-24437-20180509125134
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Query for Product Name)
[Pipeline] node
09:00:58 Running on Jenkins in /var/lib/jenkins/jobs/cvp-trigger/workspace
[Pipeline] {
[Pipeline] checkout
09:00:58 > git rev-parse --is-inside-work-tree # timeout=10
09:00:58 Fetching changes from the remote Git repository
09:00:58 > git config remote.origin.url https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
09:00:58 Fetching upstream changes from https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
09:00:58 > git --version # timeout=10
09:00:58 > git fetch --tags --progress https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git +refs/heads/*:refs/remotes/origin/*
09:00:59 > git rev-parse origin/stage^{commit} # timeout=10
09:00:59 Checking out Revision 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96 (origin/stage)
09:00:59 > git config core.sparsecheckout # timeout=10
09:00:59 > git checkout -f 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96
09:00:59 Commit message: "change min and default cpu to be 0"
[Pipeline] withEnv
[Pipeline] {
[Pipeline] checkout
09:00:59 > git rev-parse --is-inside-work-tree # timeout=10
09:00:59 Fetching changes from the remote Git repository
09:00:59 > git config remote.origin.url https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git # timeout=10
09:00:59 Fetching upstream changes from https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git
09:00:59 > git --version # timeout=10
09:00:59 > git fetch --tags --progress https://gitlab.sat.lab.tlv.redhat.com/cvp/pipeline.git +refs/heads/*:refs/remotes/origin/*
09:01:00 > git rev-parse origin/stage^{commit} # timeout=10
09:01:00 Checking out Revision 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96 (origin/stage)
09:01:00 > git config core.sparsecheckout # timeout=10
09:01:00 > git checkout -f 2dc7adb9eaf3363fbb2b50713e9caa5c5da66a96
09:01:00 Commit message: "change min and default cpu to be 0"
[Pipeline] script
[Pipeline] {
[Pipeline] readJSON
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] readJSON
[Pipeline] echo
09:01:02 Product for fuse7/fuse-ignite-upgrade is RedHatFuse
[Pipeline] echo
09:01:02 productName : cvp-redhatfuse
[Pipeline] echo
09:01:02 containerRepository : brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888
[Pipeline] echo
09:01:02 containerUnderTest : fuse7/fuse-ignite-upgrade:fuse-7.0-ignite-openshift-rhel-7-containers-candidate-24437-20180509125134
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Create Product Jenkins Master)
[Pipeline] script
[Pipeline] {
[Pipeline] lock
09:01:02 Trying to acquire lock on [jenkins-master-cvp-redhatfuse]
09:01:02 Resource [jenkins-master-cvp-redhatfuse] did not exist. Created.
09:01:02 Lock acquired on [jenkins-master-cvp-redhatfuse]
[Pipeline] {
[Pipeline] echo
09:01:02 Creating master for cvp-redhatfuse
[Pipeline] sh
09:01:04 [cvp-trigger] Running shell script
09:01:09 + oc status
09:01:09 + head -1
[Pipeline] sh
09:01:10 [cvp-trigger] Running shell script
09:01:16 + oc whoami
09:01:16 + cut -f4 -d:
[Pipeline] sh
09:01:16 [cvp-trigger] Running shell script
09:01:21 + oc whoami -t
[Pipeline] dir
09:01:21 Running in /home/jenkins/workspace/cvp-trigger/config/ansible
[Pipeline] {
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] writeFile
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] sh
09:01:22 [ansible] Running shell script
09:01:28 + ansible-playbook -i localhost, site.yml --connection=local --vault-id password.txt
09:01:31
09:01:31 PLAY [Create product project] **************************************************
09:01:31
09:01:31 TASK [Gathering Facts] *********************************************************
09:01:35 ok: [localhost]
09:01:35
09:01:35 TASK [Print creds from environment] ********************************************
09:01:35 ok: [localhost]
09:01:35
09:01:35 TASK [debug] *******************************************************************
09:01:35 ok: [localhost] => {
09:01:35 "msg": [
09:01:35 "OPENSHIFT_PROJECT: cvp-redhatfuse",
09:01:35 "OPENSHIFT_URL: https://172.30.0.1:443",
09:01:35 "OPENSHIFT_TOKEN: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdnAiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlY3JldC5uYW1lIjoiamVua2lucy10b2tlbi1nOGo2YiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJqZW5raW5zIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiODdlMjE1M2UtNTM4Ni0xMWU4LWEyYjYtNTI1NDAwZjhmNDBmIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OmN2cDpqZW5raW5zIn0.GX8-XACEPnjOUhzZ2EkaIkN7RN2K2eeRxv7wi4wc8xbJ_ODjA8oKiUHCkhjH5WNUcdXAzmjiR5P402XiOIlIgvDATlIlICoNpx7Nkujz0PveKAJe7GclrSB11QmgAWmVIMzP4WEPrb-VT4NeIAl-ZHhU2E8K8ye_PKqjeAIrmqNtwV986pXrZe-hhB7c25T2HCgMA-KiTNfVBNCRwGNLvj4wIQlnQJwCJiAcl8NrFnfsNWrb0K1IBhrDaXyD6QG0TM34Pen6HGdkGWcgkyW_UQF3HDEsVmoZJVqEHnu6e6KzHnj-xLJnuENI7B9lzvgNb-9jLA22KOwehhyXKAmjrA",
09:01:35 "OPENSHIFT_USERNAME: jenkins",
09:01:35 ""
09:01:35 ]
09:01:35 }
09:01:35
09:01:35 TASK [include_role] ************************************************************
09:01:35
09:01:35 TASK [create_openshift_project : Create OpenShift project cvp-redhatfuse] ******
09:01:42 changed: [localhost]
09:01:42
09:01:42 TASK [cvp-redhatfuse already exists in OpenShift] ******************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Login to https://172.30.0.1:443] *****************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Switch to cvp-redhatfuse] ************************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Get Jenkins URL] *********************************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Check if Jenkins is responding] ******************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Record Jenkins response] *************************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [Skipping configuration steps] ********************************************
09:01:42 skipping: [localhost]
09:01:42
09:01:42 TASK [include_role] ************************************************************
09:01:42
09:01:42 TASK [configure_resource_quotas : Remove resource quotas for cvp-redhatfuse] ***
09:01:43 ok: [localhost]
09:01:43
09:01:43 TASK [configure_resource_quotas : Remove resource limits for cvp-redhatfuse] ***
09:01:44 ok: [localhost]
09:01:44
09:01:44 TASK [configure_resource_quotas : Configure resource quotas for cvp-redhatfuse] ***
09:02:06 changed: [localhost]
09:02:06
09:02:06 TASK [configure_resource_quotas : Configure resource limits for cvp-redhatfuse] ***
09:02:29 changed: [localhost]
09:02:29
09:02:29 TASK [include_role] ************************************************************
09:02:29
09:02:29 TASK [create_clouds_secret : Create cloud secret for cvp-redhatfuse] ***********
09:02:51 changed: [localhost]
09:02:51
09:02:51 TASK [include_role] ************************************************************
09:02:51
09:02:51 TASK [create_jenkins_sshkey_secret : Create ssh private key secret for cvp-redhatfuse] ***
09:03:13 changed: [localhost]
09:03:13
09:03:13 TASK [include_role] ************************************************************
09:03:13
09:03:13 TASK [create_admin_rolebinding : Create admin role binding for cvp-redhatfuse] ***
09:03:13 fatal: [localhost]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false}
09:03:13 ...ignoring
09:03:13
09:03:13 TASK [create_admin_rolebinding : Verify creation of role binding succeeded] ****
09:03:13 ok: [localhost]
09:03:13
09:03:13 TASK [include_role] ************************************************************
09:03:13
09:03:13 TASK [create_product_jenkins : Switch to cvp-redhatfuse] ***********************
09:03:15 changed: [localhost]
09:03:15
09:03:15 TASK [create_product_jenkins : List existing templates] ************************
09:03:17 changed: [localhost]
09:03:17
09:03:17 TASK [create_product_jenkins : Delete existing templates] **********************
09:03:17 skipping: [localhost]
09:03:17
09:03:17 TASK [create_product_jenkins : Create templates] *******************************
09:03:18 changed: [localhost] => (item={u'path': u'/home/jenkins/workspace/cvp-trigger/config/ansible/../../product/config/s2i/jenkins/jenkins-ephemeral-template.yml', u'name': u'jenkins-ephemeral'})
09:03:19 changed: [localhost] => (item={u'path': u'/home/jenkins/workspace/cvp-trigger/config/ansible/../../product/config/s2i/jenkins/jenkins-slave-template.yml', u'name': u'jenkins-cvp-slave-builder'})
09:03:19
09:03:19 TASK [create_product_jenkins : Check for resources] ****************************
09:03:20 changed: [localhost]
09:03:20
09:03:20 TASK [create_product_jenkins : Clean out existing resources] *******************
09:03:20 skipping: [localhost]
09:03:20
09:03:20 TASK [create_product_jenkins : Create ephemeral Jenkins] ***********************
09:03:22 changed: [localhost]
09:03:22
09:03:22 TASK [create_product_jenkins : Wait for build to complete...] ******************
09:03:24 FAILED - RETRYING: Wait for build to complete... (60 retries left).
09:04:32 FAILED - RETRYING: Wait for build to complete... (59 retries left).
09:05:40 FAILED - RETRYING: Wait for build to complete... (58 retries left).
09:06:36 FAILED - RETRYING: Wait for build to complete... (57 retries left).
09:07:44 FAILED - RETRYING: Wait for build to complete... (56 retries left).
09:08:42 FAILED - RETRYING: Wait for build to complete... (55 retries left).
09:09:50 FAILED - RETRYING: Wait for build to complete... (54 retries left).
09:10:58 FAILED - RETRYING: Wait for build to complete... (53 retries left).
09:12:23 FAILED - RETRYING: Wait for build to complete... (52 retries left).
09:13:33 FAILED - RETRYING: Wait for build to complete... (51 retries left).
09:14:42 FAILED - RETRYING: Wait for build to complete... (50 retries left).
09:15:40 FAILED - RETRYING: Wait for build to complete... (49 retries left).
09:16:49 FAILED - RETRYING: Wait for build to complete... (48 retries left).
09:18:14 FAILED - RETRYING: Wait for build to complete... (47 retries left).
09:19:38 FAILED - RETRYING: Wait for build to complete... (46 retries left).
09:20:47 ok: [localhost]
09:20:47
09:20:47 TASK [create_product_jenkins : Tag latest jenkins image] ***********************
09:21:12 changed: [localhost]
09:21:16
09:21:16 TASK [create_product_jenkins : Create slave Jenkins] ***************************
09:21:30 changed: [localhost]
09:21:30
09:21:30 TASK [create_product_jenkins : Wait for build to complete...] ******************
09:21:38 FAILED - RETRYING: Wait for build to complete... (60 retries left).
09:23:27 FAILED - RETRYING: Wait for build to complete... (59 retries left).
09:24:39 FAILED - RETRYING: Wait for build to complete... (58 retries left).
09:25:55 FAILED - RETRYING: Wait for build to complete... (57 retries left).
09:27:07 FAILED - RETRYING: Wait for build to complete... (56 retries left).
09:28:16 FAILED - RETRYING: Wait for build to complete... (55 retries left).
09:29:14 FAILED - RETRYING: Wait for build to complete... (54 retries left).
09:30:23 FAILED - RETRYING: Wait for build to complete... (53 retries left).
09:31:33 FAILED - RETRYING: Wait for build to complete... (52 retries left).
09:32:42 FAILED - RETRYING: Wait for build to complete... (51 retries left).
09:34:06 ok: [localhost]
09:34:06
09:34:06 TASK [create_product_jenkins : Tag latest jenkins-cvp-slave image] *************
09:34:10 changed: [localhost]
09:34:10
09:34:10 PLAY RECAP *********************************************************************
09:34:10 localhost : ok=22 changed=13 unreachable=0 failed=0
09:34:10
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
09:34:10 Lock released on resource [jenkins-master-cvp-redhatfuse]
[Pipeline] // lock
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Trigger Product Container Verification Pipeline)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
09:34:11 [cvp-trigger] Running shell script
09:34:17 + awk '{print $2}'
09:34:17 + oc get --no-headers=true route jenkins -n cvp-redhatfuse
[Pipeline] sh
09:34:18 [cvp-trigger] Running shell script
09:34:24 + ansible-playbook -vv -i localhost, product/playbooks/trigger-and-wait-for-product-build.yml -e jenkins_url=https://jenkins-cvp-redhatfuse.192.168.42.12.nip.io -e job_name=cvp-product-test -e 'git_repo=git://pkgs.devel.redhat.com/containers/fuse-ignite-upgrade?#c2aa131f0418700aa029b6593cbbc1f14b6f266e' -e git_branch=fuse-7.0-ignite-openshift-rhel-7 -e payload_name=unknown -e images=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-upgrade:fuse-7.0-ignite-openshift-rhel-7-containers-candidate-24437-20180509125134 -e product_name=cvp-redhatfuse -e executionID=42618fab-c717-4e8b-9bac-c632ca78f0ea -e trigger_build_number_file=/home/jenkins/workspace/cvp-trigger/triggeredBuildNumber.txt --connection=local
09:34:27 ansible-playbook 2.5.2
09:34:27 config file = /etc/ansible/ansible.cfg
09:34:27 configured module search path = [u'/home/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
09:34:27 ansible python module location = /usr/lib/python2.7/site-packages/ansible
09:34:27 executable location = /usr/bin/ansible-playbook
09:34:27 python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
09:34:27 Using /etc/ansible/ansible.cfg as config file
09:34:28
09:34:28 PLAYBOOK: trigger-and-wait-for-product-build.yml *******************************
09:34:28 1 plays in product/playbooks/trigger-and-wait-for-product-build.yml
09:34:28
09:34:28 PLAY [Trigger and Wait for Product Build] **************************************
09:34:28 META: ran handlers
09:34:28
09:34:28 TASK [Debug test playbook_dir] *************************************************
09:34:28 task path: /home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.yml:10
09:34:28 ok: [localhost] => {
09:34:28 "msg": "/home/jenkins/workspace/cvp-trigger/product/playbooks"
09:34:28 }
09:34:28
09:34:28 TASK [Setting the global variables] ********************************************
09:34:28 task path: /home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.yml:13
09:34:28 ok: [localhost] => {"ansible_facts": {"job_url": "https://jenkins-cvp-redhatfuse.192.168.42.12.nip.io/job/cvp-product-test", "workspace": "/home/jenkins/workspace/cvp-trigger"}, "changed": false}
09:34:28
09:34:28 TASK [Preparing the job parameters using the template] *************************
09:34:28 task path: /home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.yml:18
09:34:30 changed: [localhost] => {"changed": true, "checksum": "9d6b3d31eff86bef5d1758b351f840c84d484e33", "dest": "/home/jenkins/workspace/cvp-trigger/build_parameters.json", "gid": 0, "group": "root", "md5sum": "c958cba9768ec8fe826ddf31c0a2d1c0", "mode": "0644", "owner": "default", "size": 622, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1525872868.55-162954517695403/source", "state": "file", "uid": 1000060000}
09:34:30
09:34:30 TASK [Getting the product Token] ***********************************************
09:34:30 task path: /home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.yml:23
09:34:33 changed: [localhost] => {"changed": true, "cmd": "oc serviceaccounts get-token jenkins -n cvp-redhatfuse", "delta": "0:00:02.236846", "end": "2018-05-09 13:34:32.724648", "rc": 0, "start": "2018-05-09 13:34:30.487802", "stderr": "", "stderr_lines": [], "stdout": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdnAtcmVkaGF0ZnVzZSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJqZW5raW5zLXRva2VuLW1rcjU3Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImplbmtpbnMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1YTAzNTZjZS01Mzg5LTExZTgtYTJiNi01MjU0MDBmOGY0MGYiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6Y3ZwLXJlZGhhdGZ1c2U6amVua2lucyJ9.Bwo7FrSwCNDWJ0BZa2ZRpWg0-Y3xunLX2p_6CdeD4LqFfM0Q7XfKik-lDTNUaVUV_fb55VRqzszrkLUDXzIRF3J0IAB6sWW6StE5J1CHOAG_PVmMU1twwxhFCKBFtTY6is5amwvDWc9bZbd7YTjeAqQxMOimhdezavinGXM5qgc7f0nEwQiAVtSlAICvg_jHfjVEekxlGQOhnUmRWZIKBgktfeZst4KJIURmtZl_gE_LS5ak9M2QP2ADPg9J9tFdOvyd-UNWbRK5rvjstdL81qGUSuFox_vqDftb-wWM173IbrS3SzlRQ2wQDEmmmaI9okxNv5JkRpOO5wwLDNfs3w", "stdout_lines": ["eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdnAtcmVkaGF0ZnVzZSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJqZW5raW5zLXRva2VuLW1rcjU3Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImplbmtpbnMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1YTAzNTZjZS01Mzg5LTExZTgtYTJiNi01MjU0MDBmOGY0MGYiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6Y3ZwLXJlZGhhdGZ1c2U6amVua2lucyJ9.Bwo7FrSwCNDWJ0BZa2ZRpWg0-Y3xunLX2p_6CdeD4LqFfM0Q7XfKik-lDTNUaVUV_fb55VRqzszrkLUDXzIRF3J0IAB6sWW6StE5J1CHOAG_PVmMU1twwxhFCKBFtTY6is5amwvDWc9bZbd7YTjeAqQxMOimhdezavinGXM5qgc7f0nEwQiAVtSlAICvg_jHfjVEekxlGQOhnUmRWZIKBgktfeZst4KJIURmtZl_gE_LS5ak9M2QP2ADPg9J9tFdOvyd-UNWbRK5rvjstdL81qGUSuFox_vqDftb-wWM173IbrS3SzlRQ2wQDEmmmaI9okxNv5JkRpOO5wwLDNfs3w"]}
09:34:33
09:34:33 TASK [Trigger Build] ***********************************************************
09:34:33 task path: /home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.yml:29
09:34:38 FAILED - RETRYING: Trigger Build (10 retries left).
09:35:05 FAILED - RETRYING: Trigger Build (9 retries left).
09:35:24 FAILED - RETRYING: Trigger Build (8 retries left).
09:35:43 FAILED - RETRYING: Trigger Build (7 retries left).
09:36:22 FAILED - RETRYING: Trigger Build (6 retries left).
09:37:14 FAILED - RETRYING: Trigger Build (5 retries left).
09:37:41 FAILED - RETRYING: Trigger Build (4 retries left).
09:38:54 FAILED - RETRYING: Trigger Build (3 retries left).
09:39:34 FAILED - RETRYING: Trigger Build (2 retries left).
09:40:11 FAILED - RETRYING: Trigger Build (1 retries left).
09:40:36 [WARNING]: Consider using the get_url or uri module rather than running curl.
09:40:36 If you need to use command because get_url or uri is insufficient you can add
09:40:36 warn=False to this command task or set command_warnings=False in ansible.cfg to
09:40:36 get rid of this message.
09:40:36
09:40:36 fatal: [localhost]: FAILED! => {"attempts": 10, "changed": true, "cmd": "curl -X POST -k -w \"%{http_code}\" -s -o /dev/null -H \"Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJjdnAtcmVkaGF0ZnVzZSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJqZW5raW5zLXRva2VuLW1rcjU3Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQubmFtZSI6ImplbmtpbnMiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1YTAzNTZjZS01Mzg5LTExZTgtYTJiNi01MjU0MDBmOGY0MGYiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6Y3ZwLXJlZGhhdGZ1c2U6amVua2lucyJ9.Bwo7FrSwCNDWJ0BZa2ZRpWg0-Y3xunLX2p_6CdeD4LqFfM0Q7XfKik-lDTNUaVUV_fb55VRqzszrkLUDXzIRF3J0IAB6sWW6StE5J1CHOAG_PVmMU1twwxhFCKBFtTY6is5amwvDWc9bZbd7YTjeAqQxMOimhdezavinGXM5qgc7f0nEwQiAVtSlAICvg_jHfjVEekxlGQOhnUmRWZIKBgktfeZst4KJIURmtZl_gE_LS5ak9M2QP2ADPg9J9tFdOvyd-UNWbRK5rvjstdL81qGUSuFox_vqDftb-wWM173IbrS3SzlRQ2wQDEmmmaI9okxNv5JkRpOO5wwLDNfs3w\" --data-urlencode json='{\n\t\"parameter\": [{\n\t\t\"name\": \"gitRepo\",\n\t\t\"value\": \"git://pkgs.devel.redhat.com/containers/fuse-ignite-upgrade?#c2aa131f0418700aa029b6593cbbc1f14b6f266e\"\n\t}, {\n\t\t\"name\": \"gitBranch\",\n\t\t\"value\": \"fuse-7.0-ignite-openshift-rhel-7\"\n\t}, {\n\t\t\"name\": \"payLoadName\",\n\t\t\"value\": \"unknown\"\n\t}, {\n\t\t\"name\": \"images\",\n\t\t\"value\": \"brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/fuse7/fuse-ignite-upgrade:fuse-7.0-ignite-openshift-rhel-7-containers-candidate-24437-20180509125134\"\n\t}, {\n\t\t\"name\": \"executionID\",\n\t\t\"value\": \"42618fab-c717-4e8b-9bac-c632ca78f0ea\"\n\t}, {\n\t\t\"name\": \"productName\",\n\t\t\"value\": \"cvp-redhatfuse\"\n\t}\n\t]\n}' https://jenkins-cvp-redhatfuse.192.168.42.12.nip.io/job/cvp-product-test/build", "delta": "0:00:08.567423", "end": "2018-05-09 13:40:35.289529", "rc": 0, "start": "2018-05-09 13:40:26.722106", "stderr": "", "stderr_lines": [], "stdout": "503", "stdout_lines": ["503"]}
09:40:36 to retry, use: --limit @/home/jenkins/workspace/cvp-trigger/product/playbooks/trigger-and-wait-for-product-build.retry
09:40:36
09:40:36 PLAY RECAP *********************************************************************
09:40:36 localhost : ok=4 changed=2 unreachable=0 failed=1
09:40:36
[Pipeline] sh
09:40:38 [cvp-trigger] Running shell script
09:40:46 + touch triggeredBuildNumber.txt
[Pipeline] readFile
[Pipeline] echo
09:40:47
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] echo
09:40:50 Collecting artifacts...
[Pipeline] sh
09:40:50 [cvp-trigger] Running shell script
09:40:57 + oc get --no-headers=true route jenkins -n cvp-redhatfuse
09:40:57 + awk '{print $2}'
[Pipeline] sh
09:41:05 [cvp-trigger] Running shell script
09:41:14 + wget --no-check-certificate -O artifacts.json 'https://jenkins-cvp-redhatfuse.192.168.42.12.nip.io/job/cvp-product-test//api/json?tree=artifacts[relativePath]'
09:41:14 --2018-05-09 13:41:14-- https://jenkins-cvp-redhatfuse.192.168.42.12.nip.io/job/cvp-product-test//api/json?tree=artifacts[relativePath]
09:41:15 Resolving jenkins-cvp-redhatfuse.192.168.42.12.nip.io (jenkins-cvp-redhatfuse.192.168.42.12.nip.io)... 192.168.42.12
09:41:15 Connecting to jenkins-cvp-redhatfuse.192.168.42.12.nip.io (jenkins-cvp-redhatfuse.192.168.42.12.nip.io)|192.168.42.12|:443... connected.
09:41:15 WARNING: cannot verify jenkins-cvp-redhatfuse.192.168.42.12.nip.io's certificate, issued by '/CN=openshift-signer@1525868971':
09:41:15 Self-signed certificate encountered.
09:41:15 HTTP request sent, awaiting response... 503 Service Unavailable
09:41:15 2018-05-09 13:41:15 ERROR 503: Service Unavailable.
09:41:15
[Pipeline] }
[Pipeline] // script
[Pipeline] echo
09:41:17 Product Container Verification Pipeline FAILED
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: script returned exit code 2
Finished: FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment