Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing renaming and deletion issues #32 #52

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fixing renaming and deletion issues #32 #52

wants to merge 4 commits into from

Conversation

Darthholi
Copy link

The original pullrequest (#32) does have conflict issues.
Fixed conflicts and made new pullrequest.

zilmTT and others added 4 commits August 24, 2015 12:28
If the deletion and adding path share some characters the contains() function succeed and removes the added path. It should be checked if they are equal. This fixes some rename issues we discovered in our environment.
Before deleting the job hierarchy it is needed to check for changes on the files, e.g config.xml. While deleting a job it gets updated, this blocks the git -rm command from deleting this hierarchy. Commits should always come with proper messages, git command fails if the commit message is empty. Which put scm-sync in an dirty state if there are commits which cannot be pushed.
As i encountered some copy issues, e.g was not able to copy blank build/ dir, i implemented a basic filter for the FileUtil.copy function. This matches on any XML-File and on includes specified on ManualIncludes list from scm-sync-configuration.
Reworking conflicts

# Conflicts:
#	src/main/java/hudson/plugins/scm_sync_configuration/SCMManipulator.java
#	src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationBusiness.java
#	src/main/java/hudson/plugins/scm_sync_configuration/ScmSyncConfigurationPlugin.java
@xocasdashdash
Copy link

Is this plugin getting any attention from Jenkins?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants