Skip to content
Permalink
Browse files

[JENKINS-29340] Some comments have been added to pollingWithEnvInject…

… test
  • Loading branch information
Manuel Recena
Manuel Recena committed Aug 19, 2015
1 parent 21bde20 commit d89f5305989833e6a9a12666589d5996fd5938f0
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/test/java/hudson/scm/SubversionEnvInjectTest.java
@@ -6,6 +6,7 @@
import org.jenkinsci.plugins.envinject.EnvInjectJobPropertyInfo;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;

import static org.junit.Assert.assertTrue;
@@ -17,6 +18,10 @@
@Rule
public JenkinsRule jenkins = new JenkinsRule();

/**
* This test aims to verify that the variables defined in the "Properties Content" field, are availables in SCM Polling.
*/
@Issue("JENKINS-29340")
@Test
public void pollingWithEnvInject() throws Exception {
FreeStyleProject project = jenkins.createFreeStyleProject();
@@ -31,6 +36,7 @@ public void pollingWithEnvInject() throws Exception {

TaskListener listener = jenkins.createTaskListener();
PollingResult poll = project.poll(listener);
// If true means that parameters have been replaced correctly and we have a valid repository URL.
assertTrue(poll.hasChanges());

jenkins.assertBuildStatusSuccess(project.scheduleBuild2(0).get());

0 comments on commit d89f530

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