Class RevisionParameterAction

    • Field Detail

      • commit

        public final String commit
        SHA1, ref name, etc. that can be "git rev-parse"d into a specific commit.
      • combineCommits

        public final boolean combineCommits
      • revision

        public final hudson.plugins.git.Revision revision
    • Constructor Detail

      • RevisionParameterAction

        public RevisionParameterAction​(String commit)
      • RevisionParameterAction

        public RevisionParameterAction​(String commit,
                                       org.eclipse.jgit.transport.URIish repoURL)
      • RevisionParameterAction

        public RevisionParameterAction​(String commit,
                                       boolean combineCommits)
      • RevisionParameterAction

        public RevisionParameterAction​(String commit,
                                       boolean combineCommits,
                                       org.eclipse.jgit.transport.URIish repoURL)
      • RevisionParameterAction

        public RevisionParameterAction​(hudson.plugins.git.Revision revision)
      • RevisionParameterAction

        public RevisionParameterAction​(hudson.plugins.git.Revision revision,
                                       boolean combineCommits)
    • Method Detail

      • canOriginateFrom

        public boolean canOriginateFrom​(Iterable<org.eclipse.jgit.transport.RemoteConfig> remotes)
        This method tries to determine whether the commit is from given remotes. To achieve that it uses remote URL supplied during construction of this instance.
        Parameters:
        remotes - candidate remotes for this commit
        Returns:
        false if remote URL was supplied during construction and matches none of given remote URLs, otherwise true
      • shouldSchedule

        public boolean shouldSchedule​(List<Action> actions)
        Returns whether the new item should be scheduled. An action should return true if the associated task is 'different enough' to warrant a separate execution. from Queue.QueueAction
        Specified by:
        shouldSchedule in interface Queue.QueueAction