It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

'git' not found in pipeline

I have working pipeline configuration and it is working for many projects.

But today I have created new one and configured like below:


image: node:9.11.1-alpine

docker: true

- step:
- node
script: # Modify the commands below to build your repository.
# You must commit the Gradle wrapper to your repository
- apt-get update && apt-get install -y unzip git
- export TAG=$(git tag --contains $BITBUCKET_COMMIT)


But It seed to be not working.

export TAG=$(git tag --contains $BITBUCKET_COMMIT)

export TAG=$(git tag --contains $BITBUCKET_COMMIT)/opt/atlassian/pipelines/agent/tmp/ line 4: git: not found


What is the problem?

Please let me know :)



1 answer

0 votes
davina Atlassian Team Apr 16, 2019

Hi @Daeyeon Joo 

Since you are using an alpine image, you need to use the appropriate commands.


apk update && apk add git


apk update && apk upgrade && apk add --no-cache git

If you don't need to use an alpine image you can also switch to using the default pipelines image which has node and git already installed.


Hope this helps!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

453 views 0 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you