-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nemerosa/ontrack#1343 Support for auto-versioning additional paths
- Loading branch information
1 parent
29126f1
commit a57a28a
Showing
3 changed files
with
79 additions
and
1 deletion.
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
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
55 changes: 55 additions & 0 deletions
55
src/net/nemerosa/ontrack/jenkins/pipeline/autoversioning/AutoVersioningDependencyPath.groovy
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,55 @@ | ||
package net.nemerosa.ontrack.jenkins.pipeline.autoversioning | ||
|
||
class AutoVersioningDependencyPath { | ||
|
||
private final String path | ||
private final String regex | ||
private final String property | ||
private final String propertyRegex | ||
private final String propertyType | ||
private final String versionSource | ||
|
||
AutoVersioningDependencyPath(String path, String regex, String property, String propertyRegex, String propertyType, String versionSource) { | ||
this.path = path | ||
this.regex = regex | ||
this.property = property | ||
this.propertyRegex = propertyRegex | ||
this.propertyType = propertyType | ||
this.versionSource = versionSource | ||
} | ||
|
||
String getPath() { | ||
return path | ||
} | ||
|
||
String getRegex() { | ||
return regex | ||
} | ||
|
||
String getProperty() { | ||
return property | ||
} | ||
|
||
String getPropertyRegex() { | ||
return propertyRegex | ||
} | ||
|
||
String getPropertyType() { | ||
return propertyType | ||
} | ||
|
||
String getVersionSource() { | ||
return versionSource | ||
} | ||
|
||
Map<String, ?> toMap() { | ||
return [ | ||
path : path, | ||
regex : regex, | ||
property : property, | ||
propertyRegex: propertyRegex, | ||
propertyType : propertyType, | ||
versionSource: versionSource, | ||
] | ||
} | ||
} |