Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-46564] Verifying content of custom file
  • Loading branch information
fcojfernandez committed Sep 8, 2017
1 parent 9e43932 commit d75cabb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/plugins/ConfigFileProviderTest.java
Expand Up @@ -27,7 +27,7 @@ public class ConfigFileProviderTest extends AbstractJUnitTest {
private static final String CRED_USR = "fakeUser";
private static final String CRED_PWD = "fakePass";
private static final String SERVER_ID = "fakeServer";
private static final String CUSTOM_CONF_CONTENT = "test_custom";
private static final String CUSTOM_CONF_CONTENT = "test_custom_content for custom file";


@Before
Expand Down Expand Up @@ -115,9 +115,9 @@ private String createPipelineAndGetConsole(final CustomConfig customConfig) {
final WorkflowJob job = jenkins.jobs.create(WorkflowJob.class);
job.script.set(String.format("node {\n" +
" configFileProvider(\n" +
" [configFile(fileId: '%s')]) {\n" +
" [configFile(fileId: '%s', variable: 'CUSTOM_SETTINGS')]) {\n" +
" \n" +
" sh 'echo test_custom '\n" +
" sh 'cat $CUSTOM_SETTINGS '\n" +
" }\n" +
"}", customConfig.id()));

Expand Down

0 comments on commit d75cabb

Please sign in to comment.