From 45e0fcbc875da4d3fbfc35b5c6c698c44cbe6259 Mon Sep 17 00:00:00 2001 From: Karsten Kraus Date: Sat, 3 Mar 2018 19:54:59 +0100 Subject: [PATCH] Fixes #38. Settings are now properly saved and restored --- .../gitlab_branch_source/GitLabSCMSource.java | 2 +- .../settings/GitLabSCMSourceSettings.java | 12 ++++++------ .../settings/MonitorStrategy.java | 15 +++++++++++++++ .../GitLabSCMBranchMonitorStrategy/config.jelly | 3 +-- .../GitLabSCMForksMonitorStrategy/config.jelly | 3 +-- .../GitLabSCMOriginMonitorStrategy/config.jelly | 3 +-- .../GitLabSCMTagMonitorStrategy/config.jelly | 6 ++---- 7 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/GitLabSCMSource.java b/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/GitLabSCMSource.java index 3205a4e..b107c45 100644 --- a/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/GitLabSCMSource.java +++ b/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/GitLabSCMSource.java @@ -86,7 +86,7 @@ public GitLabSCMSourceSettings getSourceSettings() { @Override public String getCredentialsId() { - return sourceSettings.getCredentialsId(); + return sourceSettings.getCheckoutCredentialsId(); } @Override diff --git a/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMSourceSettings.java b/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMSourceSettings.java index d625ba2..9ea6b3e 100644 --- a/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMSourceSettings.java +++ b/src/main/java/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMSourceSettings.java @@ -44,7 +44,7 @@ public final class GitLabSCMSourceSettings extends AbstractDescribableImpl extends Descriptor { @Nonnull diff --git a/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMBranchMonitorStrategy/config.jelly b/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMBranchMonitorStrategy/config.jelly index 7118314..010b9e6 100644 --- a/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMBranchMonitorStrategy/config.jelly +++ b/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMBranchMonitorStrategy/config.jelly @@ -1,8 +1,7 @@ - + diff --git a/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMForksMonitorStrategy/config.jelly b/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMForksMonitorStrategy/config.jelly index 3e9f415..65b2a79 100644 --- a/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMForksMonitorStrategy/config.jelly +++ b/src/main/resources/argelbargel/jenkins/plugins/gitlab_branch_source/settings/GitLabSCMForksMonitorStrategy/config.jelly @@ -1,8 +1,7 @@ - +
- +
- +
- +