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

Timestamper cannot be configured programmatically

    XMLWordPrintable

    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

          draperp Paul Draper created issue -
          draperp Paul Draper made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Major [ 3 ]
          draperp Paul Draper made changes -
          Labels api config
          draperp Paul Draper made changes -
          Description Jenkins 2.19.1
          Timestamper 1.8.7

          For example, the following job config:

          {code:xml}
          <?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>
          {code}

          Upload

          {code:shell}
          curl -H 'Content-Type: application/xml' -X POST --data-binary @config.xml 'https://jenkins.lucidchart.com/createItem?name=test1&#39;
          {code}

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

          For example, the following job config:

          {code:xml}
          <?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>
          {code}

          Upload

          {code}
          curl -H 'Content-Type: application/xml' -X POST --data-binary @config.xml 'https://jenkins.lucidchart.com/createItem?name=test1&#39;
          {code}

          Timestamps are not present. However, if it is configured through the UI, it somehow works.
          draperp Paul Draper made changes -
          Resolution Cannot Reproduce [ 5 ]
          Status Open [ 1 ] Resolved [ 5 ]

            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: