Not seeing logs when running a pipeline via local runner

Thomas Varga June 6, 2021

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.

 

Screenshot 2021-06-06 at 18-05-55 isotonteam isoton-api Pipelines — Bitbucket.png

 

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

1 answer

0 votes
Ingmar December 8, 2021

Any updates on this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events