1

I am using Teamcity to build docker builds and I want to use the git branch in build steps. I create a build within a project, I then create a build step in that build to do a docker push and I set the image name:tag to registry:5000/myproject/%maven.project.artifactId%:%teamcity.build.branch%

When I run the build, it just queues and nothing happens. There is a message saying:

Implicit requirements: teamcity.build.branch defined in Build step: Docker push

How can I get the git branch so that I can use the branch name in the docker label:tag?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.