[
https://issues.jenkins-ci.org/browse/JENKINS-8527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=158963#comment-158963
]
Wolfgang Hauser commented on JENKINS-8527:
------------------------------------------
As we often change the jenkins configuration directly on disk. Especially for
bulk changes or adds. The plugin should synchronize the scm while reloading the
configuration from disk.
I agree with the strategies peter_schuetze suggested. This will be our
strategies too. Since our system isn't very huge, we do changes according (S-1)
normally.
So a synchronization where JENKINS_HOME (HUDSON_HOME) rules the scm is what I
would prefer when the configuration is reloaded from disk by JENKINS
maintenance command.
> Two way synchronization
> -----------------------
>
> Key: JENKINS-8527
> URL: https://issues.jenkins-ci.org/browse/JENKINS-8527
> Project: Jenkins
> Issue Type: New Feature
> Components: scm-sync-configuration
> Reporter: peter_schuetze
> Assignee: fcamblor
>
> The plugin should be able to synchronize the configuration in two directions.
> That means When changes are detected in the SCM, they should be applied to
> Hudson. In addition, there is the issue, that the config was changed in the
> file system, what should happen then?
> config changed in SCM:
> * when to detect?
> * The plugin checks the scm periodically (configurable interval) or
> manually (button in "Manage Hudson")
> * On Hudson start up
> * When committing a new config
> * What action when change detected (should be configurable)
> * SCM always rules (update local config, trigger a reload of config). If
> a change requires a restart notify admin or display a message (automatically
> restart ??)
> * local always rules -> Revert/update the scm
> * notify admin or display a message in Hudson
> config on disc changed:
> * When to detect?
> * NO periodic check required. Change would have needed to be manually
> loaded anyway (restart or load config).
> * When reloading the config was triggered
> * When Hudson starts up
> * What action when change detected (should be configurable)
> * SCM always rules (revert the local changes.
> * local always rules (commit changes to SCM)
> * newer copy rules (only one changed)
> * newer copy rules (even if both changed)
> * if scm & local changed - ask (email to admin or message in Hudson)
> * always ask (email to admin or message in Hudson)
> The nice-to-have bonus:
> when both configs changed and asking whether to use local or scm config use
> * local
> * scm
> * newest version (timestamp)
> until the changes are confirmed.
> If the local version changed and asking whether to accept the changes, use
> the scm config until the change is confirmed.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira