Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for TeamCity buildQueue REST API build/@branchName. #8812

Conversation

opichals
Copy link
Contributor

Strips the refs/*/ if any to get just the branchName out of a :ref
e.g.: refs/heads/feature/newProfile -> feature/newProfile

The TeamCity buildQueue POST data require the branchName attribute
to contain just the branch name (just xyzbranch and not the full
ref in the refs/heads/xyzbranch). With the refs/heads/xyzbranch the
build is triggered and looks like it is working however it always
ompiles the default branch (or master).

@TeatroIO
Copy link

I've prepared a stage to preview changes. Open stage or view logs.

@opichals opichals force-pushed the teamcity_branchName_not_to_be_whole_ref branch from 7ff854e to 355371b Compare February 19, 2015 12:10
auth = {
username: username,
password: password,
}

branch = data[:ref]
branch = push[:ref].gsub("refs/heads/", "")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer single-quoted strings when you don't need string interpolation or special symbols.

Strips the refs/heads/ if any to get just the branchName out of a :ref
e.g.: `refs/heads/feature/newProfile` -> `feature/newProfile`

The TeamCity buildQueue POST data require the branchName attribute
to contain just the branch name (just xyzbranch and not the full
ref in the refs/heads/xyzbranch). With the refs/heads/xyzbranch the
build is triggered and looks like it is working however it always
ompiles the default branch (or master).
@opichals opichals force-pushed the teamcity_branchName_not_to_be_whole_ref branch from 355371b to 008e3d6 Compare February 19, 2015 12:11
@Razer6 Razer6 added this to the 7.9 milestone Feb 28, 2015
dzaporozhets added a commit that referenced this pull request Mar 2, 2015
…whole_ref

Fix for TeamCity buildQueue REST API build/@branchName.
@dzaporozhets dzaporozhets merged commit 33e1071 into gitlabhq:master Mar 2, 2015
tigefa4u pushed a commit to tigefa4u/gitlabhq that referenced this pull request Jan 3, 2019
…o 'master'

Resolve "Follow-up from "Web IDE terminal documentation""

Closes gitlabhq#8812

See merge request gitlab-org/gitlab-ee!8805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants