Class TrackingTool
- All Implemented Interfaces:
Configurable
,KeyVal.Mixin
,UtilsMixin
/*
* Copyright 2022 Thoughtworks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
pipeline('build') {
trackingTool {
link = 'https://github.com/gocd/gocd/issues/${ID}'
regex = ~/##(\\d+)/
}
}
-
Constructor Summary
-
Method Summary
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.Configurable
configure
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.KeyVal.Mixin
lookup, lookup
Methods inherited from interface cd.go.contrib.plugins.configrepo.groovy.dsl.mixins.UtilsMixin
sanitizeName
-
Constructor Details
-
TrackingTool
public TrackingTool() -
TrackingTool
-
-
Method Details
-
getRegex
-
setRegex
-
setRegex
-
getLink
The URL with a string '${ID}'. GoCD will replace the string '${ID}' with the first matched group value at run-time.Examples:
https://github.com/gocd/gocd/issues/${ID}
— GitHub issueshttps://bugzilla.example.com/bugs/bug.php?id=${ID}
— Bugzilla issuehttps://jira.example.com/jira/browse/${ID}
— Jira Issue
-
setLink
The URL with a string '${ID}'. GoCD will replace the string '${ID}' with the first matched group value at run-time.Examples:
https://github.com/gocd/gocd/issues/${ID}
— GitHub issueshttps://bugzilla.example.com/bugs/bug.php?id=${ID}
— Bugzilla issuehttps://jira.example.com/jira/browse/${ID}
— Jira Issue
-
equals
- Overrides:
equals
in classNode<TrackingTool>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classNode<TrackingTool>
-
toString
-