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

Renaming job doesn't work with Git

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This is due to SCM-694 which has been fixed.

      Once released, we should align on v1.9 to fix current issue

      Note that both svn and git renames have been deactivated in 0.0.6.1 because of this issue.

        Attachments

          Issue Links

            Activity

            Hide
            abooitt Arnoud Witt added a comment -

            Have exactly the same issue with 0.0.9

            Looking forward to see https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/32 merged, which appear to contain the fixes.

            Show
            abooitt Arnoud Witt added a comment - Have exactly the same issue with 0.0.9 Looking forward to see https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/32 merged, which appear to contain the fixes.
            Hide
            abooitt Arnoud Witt added a comment -

            Added related to JENKINS-26652 link.

            Show
            abooitt Arnoud Witt added a comment - Added related to JENKINS-26652 link.
            Hide
            gerpu Paul Schubert added a comment -

            We are having exactly the same issue with 0.0.10 and are thus sadly forced to NOT use this plugin which would be awesome if this would work.
            As soon as there is a job renamed/deleted, the plugin stops working at all and does not add any xml file to its folder which would be synced, thus a manual git commit/push does not help.
            As previously said, https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/32 seems to fix the issue. Please take a look at it.
            Thanks and kind regards, Paul

            Show
            gerpu Paul Schubert added a comment - We are having exactly the same issue with 0.0.10 and are thus sadly forced to NOT use this plugin which would be awesome if this would work. As soon as there is a job renamed/deleted, the plugin stops working at all and does not add any xml file to its folder which would be synced, thus a manual git commit/push does not help. As previously said, https://github.com/jenkinsci/scm-sync-configuration-plugin/pull/32 seems to fix the issue. Please take a look at it. Thanks and kind regards, Paul
            Hide
            kylejw Kyle W added a comment -

            I experience this issue intermittently on deletes, and this is the steps I do to resolve:

            1. cd $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/
            2. git status

            Make sure the changes listed in git status make sense

            3. If uncommitted files, git commit

            4. git push

            5. Clear the error message

            6. Restart jenkins.  This is important, otherwise the error message will continue to pop up

             

             

             

            Show
            kylejw Kyle W added a comment - I experience this issue intermittently on deletes, and this is the steps I do to resolve: cd $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/ git status Make sure the changes listed in git status make sense 3. If uncommitted files, git commit 4. git push 5. Clear the error message 6. Restart jenkins.  This is important, otherwise the error message will continue to pop up      
            Hide
            zeton3 Zeton added a comment - - edited

            Hi Kyle W,

             

            Your solution fix issue. I even create job that runs on master to fix it:

            Jenkins Job Free type:

             

            Restrict where this project can be run: master

             

            Execute shell command: 

            cd $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/

             

             

            git status
            git add .
            git commit -m "Fix synchronisation" 
            git push

             

            Show
            zeton3 Zeton added a comment - - edited Hi Kyle W ,   Your solution fix issue. I even create job that runs on master to fix it: Jenkins Job Free type:   Restrict where this project can be run: master   Execute shell command:  cd $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/     git status git add . git commit -m "Fix synchronisation"  git push  

              People

              • Assignee:
                Unassigned
                Reporter:
                fcamblor Frédéric Camblor
              • Votes:
                39 Vote for this issue
                Watchers:
                51 Start watching this issue

                Dates

                • Created:
                  Updated: