Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit d2db940

Browse files
deckriderArgelbargel
authored andcommitted
Don't trigger job without changes to branch (#102)
Set the SCMSource Id with the GitLabProject pathWithNamespsce so that the job won't keep building when there are no changes on the branch (for example on periodic organization folder scan). See also: #45, #101
1 parent e8d1b66 commit d2db940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/GitLabSCMSource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public GitLabSCMSource(@Nonnull String projectPath, @Nonnull GitLabSCMSourceSett
6868
}
6969

7070
GitLabSCMSource(GitLabProject project, GitLabSCMSourceSettings sourceSettings) {
71-
super(null);
71+
setId(project.getPathWithNamespace());
7272
this.project = project;
7373
this.sourceSettings = sourceSettings;
7474
this.hookListener = GitLabSCMWebHook.createListener(this);

0 commit comments

Comments
 (0)