Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40212

Timestamper cannot be configured programmatically

    Details

    • Similar Issues:

      Description

      Jenkins 2.19.1
      Timestamper 1.8.7

      For example, the following job config:

      <?xml version='1.0' encoding='UTF-8'?>
      <project>
        <builders>
          <hudson.tasks.Shell>
            <command>echo start
      sleep 5
      echo end</command>
          </hudson.tasks.Shell>
        </builders>
        <buildWrappers>
          <hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.8.7"/>
        </buildWrappers>
      </project>
      

      Upload

      curl -H 'Content-Type: application/xml' -X POST --data-binary @config.xml 'https://jenkins.lucidchart.com/createItem?name=test1'
      

      Timestamps are not present. However, if it is configured through the UI, it somehow works.

        Attachments

          Activity

          Hide
          stevengbrown Steven G Brown added a comment -

          Hi Paul. I followed these steps with the same versions of Jenkins and Timestamper and it worked for me. Can you provide more information so that I can reproduce the problem here?

          Show
          stevengbrown Steven G Brown added a comment - Hi Paul. I followed these steps with the same versions of Jenkins and Timestamper and it worked for me. Can you provide more information so that I can reproduce the problem here?
          Hide
          draperp Paul Draper added a comment - - edited

          I restarted the Jenkins instance, and it now works.

          Though I tried on a clean local Jenkins instance without restarting and it worked too.

          Sorry for the trouble.

          Great plugin!

          Show
          draperp Paul Draper added a comment - - edited I restarted the Jenkins instance, and it now works. Though I tried on a clean local Jenkins instance without restarting and it worked too. Sorry for the trouble. Great plugin!
          Hide
          stevengbrown Steven G Brown added a comment -

          Thanks Paul!

          Show
          stevengbrown Steven G Brown added a comment - Thanks Paul!

            People

            • Assignee:
              stevengbrown Steven G Brown
              Reporter:
              draperp Paul Draper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: