Merge branch 'gitlab-ci-parallel' into 'master'
Update GitLab CI service to work with new GitLab CI See merge request !1239
This commit is contained in:
commit
6d60762793
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@ class GitlabCiService < CiService
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit_status_path(sha)
|
def commit_status_path(sha)
|
||||||
project_url + "/builds/#{sha}/status.json?token=#{token}"
|
project_url + "/commits/#{sha}/status.json?token=#{token}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_ci_build(sha)
|
def get_ci_build(sha)
|
||||||
|
@ -55,7 +55,7 @@ class GitlabCiService < CiService
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_page(sha)
|
def build_page(sha)
|
||||||
project_url + "/builds/#{sha}"
|
project_url + "/commits/#{sha}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def builds_path
|
def builds_path
|
||||||
|
|
|
@ -34,11 +34,11 @@ describe GitlabCiService do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe :commit_status_path do
|
describe :commit_status_path do
|
||||||
it { @service.commit_status_path("2ab7834c").should == "http://ci.gitlab.org/projects/2/builds/2ab7834c/status.json?token=verySecret"}
|
it { @service.commit_status_path("2ab7834c").should == "http://ci.gitlab.org/projects/2/commits/2ab7834c/status.json?token=verySecret"}
|
||||||
end
|
end
|
||||||
|
|
||||||
describe :build_page do
|
describe :build_page do
|
||||||
it { @service.build_page("2ab7834c").should == "http://ci.gitlab.org/projects/2/builds/2ab7834c"}
|
it { @service.build_page("2ab7834c").should == "http://ci.gitlab.org/projects/2/commits/2ab7834c"}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue