Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ private OpenProjectData createDeliveryChain(OpenProjectData project) throws IOEx
}

// create auxilaries - for design and for the ocp artifacts
String[] auxiliaryRepositories = {"occonfig-artifacts", "design"};
String[] auxiliaryRepositories = {}; // formerly {"occonfig-artifacts", "design"};

if (project.getScmvcsUrl() == null) {
// create the bugtracker project
Expand All @@ -542,9 +542,11 @@ private OpenProjectData createDeliveryChain(OpenProjectData project) throws IOEx
Preconditions.checkNotNull(
project.getScmvcsUrl(), bitbucketAdapter.getClass() + " did not return scmvcs url");

project.setRepositories(
bitbucketAdapter.createAuxiliaryRepositoriesForODSProject(
project, auxiliaryRepositories));
if (!auxiliaryRepositories.isEmpty()) {
project.setRepositories(
bitbucketAdapter.createAuxiliaryRepositoriesForODSProject(
project, auxiliaryRepositories));
}

// provision platform projects
project = jenkinsPipelineAdapter.createPlatformProjects(project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ public void upgradeExisting() throws Exception {
Map<String, Map<URL_TYPE, String>> repositories = project.getRepositories();

assertNotNull(repositories);
Map<URL_TYPE, String> occonfigrepo = repositories.get("odsew-occonfig-artifacts");

assertNotNull(occonfigrepo);

assertEquals(3, occonfigrepo.size());

assertEquals(currentPath, project.getPhysicalLocation());
} catch (Exception allErr) {
throw allErr;
Expand Down
29 changes: 1 addition & 28 deletions src/test/resources/20170101000000-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,5 @@

"key" : "TEST"
,
"repositories" : {
"odsew-design" : {
"clone" : [ {
"name" : "http",
"href" : "https://bb/scm/odsew/odsew-design.git"
}, {
"name" : "ssh",
"href" : "ssh://git@bb:7999/odsew/odsew-design.git"
} ],
"self" : [ {
"name" : null,
"href" : "https://bb/projects/ODSEW/repos/odsew-design/browse"
} ]
},
"odsew-occonfig-artifacts" : {
"clone" : [ {
"name" : "ssh",
"href" : "ssh://git@bb:7999/odsew/odsew-occonfig-artifacts.git"
}, {
"name" : "http",
"href" : "https://bb/scm/odsew/odsew-occonfig-artifacts.git"
} ],
"self" : [ {
"name" : null,
"href" : "https://bb/projects/ODSEW/repos/odsew-occonfig-artifacts/browse"
} ]
}
}
"repositories" : {}
}