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

Allow a description to be set when triggering remote build

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      When triggering a remote build via HUDSON_URL/job/job_name/build?token=TOKEN_NAME, it would be
      helpful to also be able to set a description for the build that will showup in the Build History column (such
      as a reason for the build, or a project specific build number, or who triggered the build, etc.).

      I imagine this could be implemented as

      HUDSON_URL/job/Hadoop-Patch/build?token=TOKEN_NAME&description=foobar

      Special characters in the description would clearly need to be escaped.

          [JENKINS-324] Allow a description to be set when triggering remote build

          We first needs to come up with a way to pass in information from queue to builds.

          Kohsuke Kawaguchi added a comment - We first needs to come up with a way to pass in information from queue to builds.

          Alan Harder added a comment -

          started

          Alan Harder added a comment - started

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java
          trunk/hudson/main/core/src/main/java/hudson/model/BuildAuthorizationToken.java
          trunk/hudson/main/core/src/main/java/hudson/model/BuildListener.java
          trunk/hudson/main/core/src/main/java/hudson/model/Run.java
          trunk/hudson/main/core/src/main/java/hudson/model/StreamBuildListener.java
          trunk/hudson/main/core/src/main/resources/hudson/model/BuildAuthorizationToken/config.jelly
          http://fisheye4.cenqua.com/changelog/hudson/?cs=16109
          Log:
          [FIXED JENKINS-324] when starting build via build?token=TOKEN_NAME,
          support optional "cause" parameter which adds text into the recorded
          RemoteCause. Also print build cause(s) at start of console output
          (instead of just "started").

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/AbstractProject.java trunk/hudson/main/core/src/main/java/hudson/model/BuildAuthorizationToken.java trunk/hudson/main/core/src/main/java/hudson/model/BuildListener.java trunk/hudson/main/core/src/main/java/hudson/model/Run.java trunk/hudson/main/core/src/main/java/hudson/model/StreamBuildListener.java trunk/hudson/main/core/src/main/resources/hudson/model/BuildAuthorizationToken/config.jelly http://fisheye4.cenqua.com/changelog/hudson/?cs=16109 Log: [FIXED JENKINS-324] when starting build via build?token=TOKEN_NAME, support optional "cause" parameter which adds text into the recorded RemoteCause. Also print build cause(s) at start of console output (instead of just "started").

          Alan Harder added a comment -

          With the above change you can now get some text added to the console output.
          You can then use the Description Setter plugin to use this text to set the build
          description, if you like.

          Alan Harder added a comment - With the above change you can now get some text added to the console output. You can then use the Description Setter plugin to use this text to set the build description, if you like.

            mindless Alan Harder
            nidaley nidaley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: