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

Commit

Permalink
Don't trigger job without changes to branch (#102)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
deckrider authored and Argelbargel committed May 7, 2019
1 parent e8d1b66 commit d2db940
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public GitLabSCMSource(@Nonnull String projectPath, @Nonnull GitLabSCMSourceSett
}

GitLabSCMSource(GitLabProject project, GitLabSCMSourceSettings sourceSettings) {
super(null);
setId(project.getPathWithNamespace());
this.project = project;
this.sourceSettings = sourceSettings;
this.hookListener = GitLabSCMWebHook.createListener(this);
Expand Down

0 comments on commit d2db940

Please sign in to comment.