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

Add option to perform labeling for each TFS build

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • tfs-plugin
    • None
    • Platform: All, OS: All

      Please consider adding an option to automatically do the labeling for each
      build. I would see this being an optional (checkbox) feature in the job config
      screen, probably with a way to specify the pattern for the label, similar to the
      way the workspace name can be defined.

      This could be modeled after way the <tfslabel> Teamprise Ant task works
      (http://www.teamprise.com/products/ant/).

      Here's an example of the command line that could be used:

      tf label $LABEL $PROJECT_PATH -version:W -recursive

      where $LABEL is the label to apply, and $PROJECT_PATH is the project path as
      defined on the job config screen.

      "-version:W" means the label will be applied to the workspace version of the
      files, which is the same approach used by Team Build; see
      http://blogs.msdn.com/buckh/comments/724919.aspx, which states:

      "Another very common approach is creating a label using the versions of files in
      a workspace. A workspace is also a collection of files, each potentially from a
      different point in time. Team Build labels the files in its workspace as part
      of the build process. By doing this Team Build guarantees that it is labeling
      what it's building."

            jeffolson jeffolson
            jeffolson jeffolson
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: