Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
73f54f2c
Commit
73f54f2c
authored
Jan 10, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
3c8f6391
6a27e01a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
32 deletions
+14
-32
app/models/project_services/teamcity_service.rb
app/models/project_services/teamcity_service.rb
+2
-4
changelogs/unreleased/55495-teamcity-use-revision-in-query.yml
...elogs/unreleased/55495-teamcity-use-revision-in-query.yml
+5
-0
changelogs/unreleased/tc-remove-20181218192239-migration.yml
changelogs/unreleased/tc-remove-20181218192239-migration.yml
+5
-0
db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb
...kfill_project_repositories_for_legacy_storage_projects.rb
+0
-26
spec/lib/gitlab/background_migration/backfill_legacy_project_repositories_spec.rb
...nd_migration/backfill_legacy_project_repositories_spec.rb
+1
-1
spec/models/project_services/teamcity_service_spec.rb
spec/models/project_services/teamcity_service_spec.rb
+1
-1
No files found.
app/models/project_services/teamcity_service.rb
View file @
73f54f2c
...
...
@@ -39,9 +39,7 @@ class TeamcityService < CiService
end
def
help
'The build configuration in Teamcity must use the build format '
\
'number %build.vcs.number% '
\
'you will also want to configure monitoring of all branches so merge '
\
'You will want to configure monitoring of all branches so merge '
\
'requests build, that setting is in the vsc root advanced settings.'
end
...
...
@@ -70,7 +68,7 @@ class TeamcityService < CiService
end
def
calculate_reactive_cache
(
sha
,
ref
)
response
=
get_path
(
"httpAuth/app/rest/builds/branch:unspecified:any,
number
:
#{
sha
}
"
)
response
=
get_path
(
"httpAuth/app/rest/builds/branch:unspecified:any,
revision
:
#{
sha
}
"
)
{
build_page:
read_build_page
(
response
),
commit_status:
read_commit_status
(
response
)
}
end
...
...
changelogs/unreleased/55495-teamcity-use-revision-in-query.yml
0 → 100644
View file @
73f54f2c
---
title
:
Build number does not need to be tweaked anymore for the TeamCity integration to work properly.
merge_request
:
23898
author
:
type
:
changed
changelogs/unreleased/tc-remove-20181218192239-migration.yml
0 → 100644
View file @
73f54f2c
---
title
:
Remove migration to backfill project_repositories for legacy storage projects
merge_request
:
24299
author
:
type
:
removed
db/post_migrate/20181218192239_backfill_project_repositories_for_legacy_storage_projects.rb
deleted
100644 → 0
View file @
3c8f6391
# frozen_string_literal: true
class
BackfillProjectRepositoriesForLegacyStorageProjects
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
BATCH_SIZE
=
1_000
DELAY_INTERVAL
=
5
.
minutes
MIGRATION
=
'BackfillLegacyProjectRepositories'
disable_ddl_transaction!
class
Project
<
ActiveRecord
::
Base
include
EachBatch
self
.
table_name
=
'projects'
end
def
up
queue_background_migration_jobs_by_range_at_intervals
(
Project
,
MIGRATION
,
DELAY_INTERVAL
)
end
def
down
# no-op: since there could have been existing rows before the migration do not remove anything
end
end
spec/lib/gitlab/background_migration/backfill_legacy_project_repositories_spec.rb
View file @
73f54f2c
...
...
@@ -2,6 +2,6 @@
require
'spec_helper'
describe
Gitlab
::
BackgroundMigration
::
BackfillLegacyProjectRepositories
,
:migration
,
schema:
2018121
8192239
do
describe
Gitlab
::
BackgroundMigration
::
BackfillLegacyProjectRepositories
,
:migration
,
schema:
2018121
2171634
do
it_behaves_like
'backfill migration for project repositories'
,
:legacy
end
spec/models/project_services/teamcity_service_spec.rb
View file @
73f54f2c
...
...
@@ -205,7 +205,7 @@ describe TeamcityService, :use_clean_rails_memory_store_caching do
end
def
stub_request
(
status:
200
,
body:
nil
,
build_status:
'success'
)
teamcity_full_url
=
'http://gitlab.com/teamcity/httpAuth/app/rest/builds/branch:unspecified:any,
number
:123'
teamcity_full_url
=
'http://gitlab.com/teamcity/httpAuth/app/rest/builds/branch:unspecified:any,
revision
:123'
auth
=
%w(mic password)
body
||=
%Q({"build":{"status":"
#{
build_status
}
","id":"666"}})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment