Skip to content
Permalink
Browse files

[JENKINS-37778] Fix test after merge

Something unrelated in the shared libraries caused the tests to fail
bumping the dependency down one version to fix that.
An npe caused bu the credentials folder property to not be correctly initialized also fixed.
  • Loading branch information
rsandell committed Nov 8, 2016
1 parent b3e12b6 commit bec0c4be0503c5703e9d6e0da24833bc999d1372
@@ -148,7 +148,7 @@
<dependency>
<groupId>org.jenkins-ci.plugins.workflow</groupId>
<artifactId>workflow-cps-global-lib</artifactId>
<version>2.4</version>
<version>2.3</version>
<scope>test</scope>
</dependency>

@@ -82,6 +82,7 @@ public static void setup() throws Exception {
store.addCredentials(Domain.global(), mixedEnvCred2);

folder = j.jenkins.createProject(Folder.class, "testFolder");
folder.addProperty(new FolderCredentialsProvider.FolderCredentialsProperty(new DomainCredentials[0]));
j.configRoundtrip(folder);
CredentialsStore folderStore = folder.getProperties().get(FolderCredentialsProvider.FolderCredentialsProperty.class).getStore();
StringCredentialsImpl sc = new StringCredentialsImpl(CredentialsScope.GLOBAL, mixedEnvCred1Id, "test", Secret.fromString(mixedEnvInFolderCred1Secret));

0 comments on commit bec0c4b

Please sign in to comment.
You can’t perform that action at this time.