-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathGitSCMChangelogExtension.java
More file actions
33 lines (29 loc) · 1.23 KB
/
GitSCMChangelogExtension.java
File metadata and controls
33 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package hudson.plugins.git.extensions;
import java.io.IOException;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.plugins.git.GitException;
import hudson.plugins.git.GitSCM;
import hudson.plugins.git.Revision;
import org.jenkinsci.plugins.gitclient.ChangelogCommand;
import org.jenkinsci.plugins.gitclient.GitClient;
/**
* FIXME JavaDoc
* @author Zhenlei Huang
*/
public abstract class GitSCMChangelogExtension extends FakeGitSCMExtension {
/**
* Called before a {@link ChangelogCommand} is executed to allow extensions to alter its behaviour.
* @param scm GitSCM object
* @param build run context
* @param git GitClient
* @param listener build log
* @param cmd changelog command to be decorated
* @param revToBuild The revision selected for this build
* @return true in case decorated, false otherwise
* @throws IOException on input or output error
* @throws InterruptedException when interrupted
* @throws GitException on git error
*/
public abstract boolean decorateChangelogCommand(GitSCM scm, Run<?, ?> build, GitClient git, TaskListener listener, ChangelogCommand cmd, Revision revToBuild) throws IOException, InterruptedException, GitException;
}