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

git/mercurial: Remote Repository URL in pipeline job won't be updated if changed through web interface

    Details

    • Similar Issues:

      Description

      Hi,

      to reproduce the error you can do:

      1. Create a new Pipeline job
      2. In the job configuration, choose "Pipeline Script from SCM"
      3. Enter a existing git repository URL (and credentials if required) containing a Jenkinsfile
      4. Select "trigger from SCM and enter a time"
      5. Wait until job gets triggered  (I let the job fail on purpose by providing a incorrect Jenkinsfile, but for this issue I think this is irrelevant)
      6. After job got triggered go back to configuration page and change the repository URL (containing a different Jenkinsfile)
      7. Change the trigger and wait until job get triggered
      8. Now have a look at the query protocol. My protocol indicates that jenkins is still using the first repository:  
         > git.exe ls-remote -h git@oldRepository.git # timeout=10
        Found 1 remote heads on git@oldRepository.git

        The same seems to account for the other values entered through the web interface (Name and RefSpec).

        Attachments

          Activity

          airborne Ludwig Krause created issue -
          airborne Ludwig Krause made changes -
          Field Original Value New Value
          Labels git pipeline, repository scm trigger
          airborne Ludwig Krause made changes -
          Summary Remote Repository URL in pipeline job won't be updated if changed through web interface git: Remote Repository URL in pipeline job won't be updated if changed through web interface
          markewaite Mark Waite made changes -
          Assignee Mark Waite [ markewaite ]
          airborne Ludwig Krause made changes -
          Component/s pipeline [ 21692 ]
          airborne Ludwig Krause made changes -
          Summary git: Remote Repository URL in pipeline job won't be updated if changed through web interface git/mercurial: Remote Repository URL in pipeline job won't be updated if changed through web interface
          Component/s mercurial-plugin [ 15502 ]
          vivek Vivek Pandey made changes -
          Labels git pipeline, repository scm trigger git pipeline, repository scm triaged-2018-11 trigger

            People

            • Assignee:
              Unassigned
              Reporter:
              airborne Ludwig Krause
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: