Class CNTracker

    • Constructor Detail

      • CNTracker

        @DataBoundConstructor
        public CNTracker​(ConnectionFactory connectionFactory,
                         String project,
                         String tracker,
                         String title,
                         String assignUser,
                         Priority priority,
                         boolean attachLog,
                         boolean alwaysUpdate,
                         boolean closeOnSuccess,
                         String release)
        Constructs a new CNTracker instance.
        Parameters:
        tracker - tracker name.
        title - title to use when create new tracker artifacts OR to find existing tracker artifacts.
        assignUser - user to assign new tracker artifacts to.
        priority - of new tracker artifacts.
        attachLog - if true, Jenkins build logs will be uploaded and attached when creating/updating tracker artifacts.
        alwaysUpdate - if true, always update the tracker artifacts (or create one), even if build is successful and the tracker artifact is closed. If false, only update when the tracker artifact is failing or is open.
        closeOnSuccess - if true, the tracker artifact will be closed if the Jenkins build is successful. Otherwise, open issues will be updated with a successful message, but remain open.
        release - to report the tracker artifact in.
    • Method Detail

      • getTracker

        public String getTracker()
        Returns:
        tracker name.
      • getTitle

        public String getTitle()
        Returns:
        title for the Tracker Artifact.
      • getAssignUser

        public String getAssignUser()
        Returns:
        the user to assign new Tracker Artifacts to.
      • getPriority

        public Priority getPriority()
        Returns:
        the priority to set new Tracker Artifacts to.
      • getAttachLog

        public boolean getAttachLog()
        Returns:
        true, if logs should be attached to Tracker Artifacts.
      • getAlwaysUpdate

        public boolean getAlwaysUpdate()
        Returns:
        true, if artifact creation/update should happen, even if the Jenkins build is successful and the artifact is not open.
      • getCloseOnSuccess

        public boolean getCloseOnSuccess()
        Returns:
        true, if artifacts should be closed when the Jenkins build succeeds.
      • getRelease

        public String getRelease()
        Returns:
        the name of the release which new Tracker Artifacts will be reported in.
      • getRequiredMonitorService

        public BuildStepMonitor getRequiredMonitorService()
      • logoff

        public void logoff()
        Log out of the collabnet server.