I am using a Bitbucket pipeline that runs on a local runner instance. Regardless if the pipeline succeeds or fails I do not see logs from the runner on the Bitbucket Pipelines interface. Looking on the host where the local runner is hosted I see via "docker logs -f build" that log entries are getting generated. I would expect that these log entries are made available on the Bitbucket UI side.
The attached screenshot shows what I am seeing.
My "bitbucket-pipelines.yml" file:
pipelines:
branches:
tvarga-runner:
- step:
name: Ansible deployment
runs-on: chef
image: tvarga/ansible:2
script:
- id
- ansible-playbook -i runner hello_world.yml
- sleep 15
"docker logs -f build" displays the following - which I would expect to the see in the above screenshot.
+ id
uid=0(root) gid=0(root) groups=0(root)
+ ansible-playbook -i runner hello_world.yml
PLAY [This is a hello-world example] *******************************************
TASK [Gathering Facts] *********************************************************
ok: [test-host]
TASK [Create a file called '/tmp/testfile.txt' with the content 'hello world'.] ***
changed: [test-host]
PLAY RECAP *********************************************************************
test-host : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
+ sleep 15
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.