-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the project type parameters outside DSL (#8)
* Bump releng-lib version * OCTOPUS-231 Add a doc * OCTOPUS-237 Set the project type parameters outside DSL
- Loading branch information
1 parent
fdf1536
commit ffd078d
Showing
63 changed files
with
883 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ on: [push, pull_request, workflow_dispatch] | |
|
||
jobs: | ||
run-build-and-deploy: | ||
uses: octopusden/octopus-base/.github/workflows/[email protected].2 | ||
uses: octopusden/octopus-base/.github/workflows/[email protected].3 | ||
with: | ||
flow-type: hybrid | ||
java-version: '11' | ||
docker-image: components-registry-service | ||
skip-tests: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
.../src/main/java/org/octopusden/octopus/escrow/config/JiraComponentVersionRangeFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.octopusden.octopus.escrow.config; | ||
|
||
import org.octopusden.octopus.escrow.model.Distribution; | ||
import org.octopusden.octopus.escrow.model.VCSSettings; | ||
import org.octopusden.octopus.releng.JiraComponentVersionFormatter; | ||
import org.octopusden.octopus.releng.dto.ComponentVersion; | ||
import org.octopusden.octopus.releng.dto.JiraComponent; | ||
import org.octopusden.octopus.releng.dto.JiraComponentVersion; | ||
import org.octopusden.releng.versions.VersionNames; | ||
|
||
public class JiraComponentVersionRangeFactory { | ||
|
||
private final VersionNames versionNames; | ||
|
||
public JiraComponentVersionRangeFactory(VersionNames versionNames) { | ||
this.versionNames = versionNames; | ||
} | ||
|
||
public JiraComponentVersionRange create( | ||
String componentName, | ||
String versionRange, | ||
JiraComponent jiraComponent, | ||
Distribution distribution, | ||
VCSSettings vcsSettings | ||
) { | ||
JiraComponentVersionFormatter jiraComponentVersionFormatter = new JiraComponentVersionFormatter(versionNames); | ||
JiraComponentVersion jiraComponentVersion = JiraComponentVersion.builder(jiraComponentVersionFormatter) | ||
.componentVersion(ComponentVersion.create(componentName, versionRange)) | ||
.component(jiraComponent) | ||
.build(); | ||
|
||
return new JiraComponentVersionRange( | ||
componentName, | ||
versionRange, | ||
jiraComponent, | ||
distribution, | ||
vcsSettings, | ||
jiraComponentVersion | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.