Jesse Glick resolved Bug JENKINS-26761 as Cannot Reproduce

Was not able to reproduce. Using Linux and Java 8, I ran 1.598 from the WAR with a fresh home directory, installed Workflow plugins (1.2), added the Git plugin (2.3.5), restarted Jenkins to complete the installation. Created a new Git repository /tmp/testrepo, added one file to it and committed. Defined a job

<?xml version='1.0' encoding='UTF-8'?>
<flow-definition plugin="[email protected]">
  <actions/>
  <description></description>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="[email protected]">
    <script>node {
  git &apos;/tmp/testrepo&apos;
  sh &apos;ls&apos;
}</script>
    <sandbox>false</sandbox>
  </definition>
  <triggers>
    <hudson.triggers.SCMTrigger>
      <spec>@daily</spec>
      <ignorePostCommitHooks>false</ignorePostCommitHooks>
    </hudson.triggers.SCMTrigger>
  </triggers>
</flow-definition>

Ran a build; it checked out the repo as expected and listed the one file.

From a shell, ran

$ curl -i http://localhost:8080/jenkins/git/notifyCommit?url=""
HTTP/1.1 200 OK
Triggered: http://localhost:8080/jenkins/job/<JOBNAME>/
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 92
Server: Jetty(winstone-2.8)

Scheduled polling of <JOBNAME>
No Git consumers using SCM API plugin for: /tmp/testrepo

as expected.

Restarted Jenkins (/restart), and when it was back up, ran the same curl command again, with the same result.

Also committed a change to the Git repo and ran the notify command. Again the same curl output, and now build #2 of the job was triggered, with the expected changelog.

If you can still reproduce this problem, please attach $JENKINS_HOME/jobs/$JOBNAME/builds/lastSuccessfulBuild/build.xml. There should be a section beginning

<checkouts class="linked-list">

Your stack trace suggests that it is missing for some reason, but I am not sure how that could have happened.

Change By: Jesse Glick (21/Feb/15 6:15 PM)
Status: In Progress Resolved
Resolution: Cannot Reproduce
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to