Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I don't see data updated after git pull orign master, pipeline bitbucket

javier April 25, 2022

Hi

I got this pipeline and a runner on my remote machine

bitbucket_pipeline.yml:

 

image: rust
pipelines:
   branches:
       master:
            - step:
                  name: 'Staging'
                  deployment: Staging
                 runs-on:
                     - self.hosted
                     - linux
                 script:
                    - cd /app
                    - pwd
                    - git init
                    - git remote add origin git@bitbucket.org:hha/app.git
                    - ls -la
                    - git fetch
                   - git checkout master
                   - git pull origin master

runner:

 

docker container run -it -v /app:/app -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ACCOUNT_UUID={ccc259a5-3cf0-4d66-a66e-14b9b7a6} -e REPOSITORY_UUID={62e5e6c708-4bce-a251-5110bf9477bf} -e RUNNER_UUID={8f5c2-fac7-5c6c-9d41-97bf60a42b56} -e RUNTIME_PREREQUISITES_ENABLED=true -e OAUTH_CLIENT_ID=yZ8wBSBh37CgMWpGJLLJhofdbehlp -e OAUTH_CLIENT_SECRET=WhhXu2ewDPNb9DF8VL_5R_s75zxHzqqQ1ugrakquRUmpPqft7vBpBfK0XBTr -e WORKING_DIRECTORY=/app --name runner-8f5c2b63-fac7-5c6c-9d41-97bf2b56 docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1

 

Pipeline is working/passing after setting SSH keys pipeline, but I don't see anything on the path /apps on my remote machine. Changes are done on the docker cotnainer but not on the path of my remote machine, why?

Thanks

 

 

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2022

Hi @jg,

I'm afraid that Linux runners don't provide access to the host file system.

We have a feature request in our issue tracker that you can vote for and add yourself as a watcher if you'd like to get notified via email on updates:

In the meantime, we recommend using SCP / Rsync, if necessary.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events