• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • Windows 2003 64 Server

      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

          [JENKINS-8942] Change configuration for Multiple jobs

          kbertelson added a comment -

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

          kbertelson added a comment - Changed component from matrixtieparent to matrix since that is more appropriate.

          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

          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

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

              Created:
              Updated: