Class TrackingTool

java.lang.Object
cd.go.contrib.plugins.configrepo.groovy.dsl.Node<TrackingTool>
cd.go.contrib.plugins.configrepo.groovy.dsl.TrackingTool
All Implemented Interfaces:
Configurable, KeyVal.Mixin, UtilsMixin

public class TrackingTool extends Node<TrackingTool>
Represents an issue tracker.

/*
 * 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 Details

  • Method Details

    • getRegex

      public Pattern getRegex()
    • setRegex

      public void setRegex(Pattern regex)
    • setRegex

      public void setRegex(String regex)
    • getLink

      public String 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 issues
      • https://bugzilla.example.com/bugs/bug.php?id=${ID} — Bugzilla issue
      • https://jira.example.com/jira/browse/${ID} — Jira Issue
    • setLink

      public void setLink(String link)
      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 issues
      • https://bugzilla.example.com/bugs/bug.php?id=${ID} — Bugzilla issue
      • https://jira.example.com/jira/browse/${ID} — Jira Issue
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Node<TrackingTool>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Node<TrackingTool>
    • toString

      public String toString()
      Overrides:
      toString in class Object