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

Allow a description to be set when triggering remote build

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            kohsuke Kohsuke Kawaguchi added a comment -

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

            Show
            kohsuke Kohsuke Kawaguchi added a comment - We first needs to come up with a way to pass in information from queue to builds.
            Hide
            mindless Alan Harder added a comment -

            started

            Show
            mindless Alan Harder added a comment - started
            Hide
            scm_issue_link 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").

            Show
            scm_issue_link 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").
            Hide
            mindless 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.

            Show
            mindless 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.

              People

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

                Dates

                Created:
                Updated:
                Resolved: