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
options:
docker: true
pipelines:
branches:
develop:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
# You must commit the Gradle wrapper to your repository
# https://docs.gradle.org/current/userguide/gradle_wrapper.html
- 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/shellScript1396312809883348351.sh: line 4: git: not found
What is the problem?
Please let me know :)
Hi @Daeyeon Joo
Since you are using an alpine image, you need to use the appropriate commands.
Try
apk update && apk add git
or
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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.