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

Change configuration for Multiple jobs

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: matrix-project-plugin
    • Labels:
      None
    • Environment:
      Windows 2003 64 Server
    • Similar Issues:

      Description

      It would be fine if the configuration of the Jenkins job can change to multiple projects at the same time.

      example1: I want to change de build timeout for 5 jobs of Jenkins I must open 5 jobs and change each one. If I could select the 5 jobs for change some parameter together it would be find.

      example2: I want to change the matrix label for 5 jobs... I must change now 5 configurations of matrix labels

        Attachments

          Issue Links

            Activity

            Hide
            kbertelson kbertelson added a comment -

            Changed component from matrixtieparent to matrix since that is more appropriate.

            Show
            kbertelson kbertelson added a comment - Changed component from matrixtieparent to matrix since that is more appropriate.
            Hide
            guylevy guy levy added a comment -

            This works for me, you will need to write a script that will loop through your Jenkins jobs and SED the value with a new one then use POST

            https://support.cloudbees.com/hc/en-us/articles/218353308-How-to-update-job-config-files-using-the-REST-API-and-cURL

            1. Get current config
              curl -X GET http://developer:developer@localhost:8080/job/test/config.xml -o mylocalconfig.xml
            1. Post updated config
              curl -X POST http://developer:developer@localhost:8080/job/test/config.xml --data-binary "@mymodifiedlocalconfig.xml"

            Obviously, replace:

            developer:developer with your username:password
            localhost:8080 with your Jenkins URL
            test with your job name

            Show
            guylevy guy levy added a comment - This works for me, you will need to write a script that will loop through your Jenkins jobs and SED the value with a new one then use POST https://support.cloudbees.com/hc/en-us/articles/218353308-How-to-update-job-config-files-using-the-REST-API-and-cURL Get current config curl -X GET http://developer:developer@localhost:8080/job/test/config.xml -o mylocalconfig.xml Post updated config curl -X POST http://developer:developer@localhost:8080/job/test/config.xml --data-binary "@mymodifiedlocalconfig.xml" Obviously, replace: developer:developer with your username:password localhost:8080 with your Jenkins URL test with your job name

              People

              • Assignee:
                kbertelson kbertelson
                Reporter:
                kaguendiez Jonathan Gonzalez
              • Votes:
                10 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: