IntroductionSyncs configuration files to a SCM repository and tracks changes done to them Plugin Information
SCM Sync Configuration Jenkins/Hudson plugin is aimed at 2 main features :
Installation
To install SCM Sync Configuration Plugin, Go to the "plugin management" section in the administration Panel. To verify that the plugin is well installed, go to the Administration panel, then in the "System configuration" section : you should notice a "SCM Sync Configuration" section : UsageOn the System configuration panel (seen above), you'll be prompted for a SCM type (as of this writing, Subversion or Git) and a repository URL for your SCM type. When you'll complete this form section, and validate the form, the SCM Sync Configuration will compute every configuration file he is able to synchronize, and commit them, for initialization, on your SCM repository. Once initialized, every time you'll submit a configuration view that can be sync'ed by the SCM Sync Configuration plugin, you'll be prompted for a comment that will be put on the commit message on your SCM Repository. For now, supported configuration files are the following ones :
But more default configuration files are planned ! (see the Product Backlog for further informations) On every pages, you will have some scm sync config status at the bottom of the page, saying if something went wrong :
TroubleshootingsA page dedicated to Scm Sync Configuration troubleshoots has been created. Don't hesitate to participate on it by telling your stories. What is synchronized, and when
Known issuesProduct backlog
*Privileged user can be, for example, user having access to job configuration update when job configuration is sync'ed. Releases0.0.8 (Aug, 24th, 2014)Tasks
Bugfixes
0.0.7.5 (Jul, 5th, 2014)Bugfixes
0.0.7.4 (Feb, 12th, 2014)Improvements
0.0.7.3 (July, 24th, 2013)Bugfixes
Improvements
0.0.7.2 (July, 20th, 2013)Bugfixes
Improvements
0.0.7.1 (May, 24th, 2013)Bugfixes
0.0.7 (January, 25th, 2013)This release should likely have been tagged 0.0.6.2 instead of 0.7.0, there isn't any big step by upgrading. Bugfixes
0.0.6.1 (October, 28th, 2012)Bugfixes
0.0.6 (September, 18th, 2012)Improvements
Bugs
Known Bugs on this release
0.0.5 (April, 25th, 2012)Improvements
Tasks
0.0.4 (March, 9th, 2011)Bugfixes
Improvements
Tasks
0.0.3 (January, 4th, 2011)Bugfixes
Improvements
Tasks
0.0.2 (October, 15th, 2010)Bugfixes
Improvements
Tasks
0.0.1 (October, 12th, 2010)
Improvements
Roadmap (future versions)v0.1
v0.2
v0.3
Current bugs to solve before v0.1
Greetings to our sponsorsI'm a proud user of |
SCM Sync configuration plugin
Skip to end of metadata
Go to start of metadata




Comments (114)
Oct 25, 2010
Sorin Sbarnea says:
This plugin looks very useful, I can't wait to see Perforce SCM support in it. M...This plugin looks very useful, I can't wait to see Perforce SCM support in it. Maybe it is a good idea to try to use the Hudson SCM implementation for implementing this instead of reimplementing support for each SCM.
Oct 25, 2010
fcamblor - says:
This is the idea Both using maven-scm-api (for implementation) and Hudson SCM ...This is the idea
Both using maven-scm-api (for implementation) and Hudson SCM (for saved credentials) is planned
Feb 25, 2011
Patrick Wyss says:
This thing looks exactly like what i need here! However I don't seem to get...This thing looks exactly like what i need here!
However I don't seem to get it running :-/
I did:
- "Manage Jenkins"
- "Configure System"
- "SCM Sync configuration" - radio button to Subversion and added a repository (however for testing i did an different repos on a different machine than where my project sources reside)
- click "Save"
nothing happens, i'd expect a box asking for credentials.
Is there some log somewhere (sorry i'm new to jenkins so i don't know if there is some standard place to look)
Feb 25, 2011
fcamblor - says:
Hi Patrick ! From Hudson Home, go to "Manage Hudson" > "System log"...Hi Patrick !
From Hudson Home, go to "Manage Hudson" > "System log" and there, add a new log recorder.
Put the name of your choice in this recorder, and add the logger "hudson.plugins.scm_sync_configuration" with log level "all".
Then you will be able to see logs generated by the SCM Sync configuration plugin.
This was for the log part.
For the other part, some questions :
- Are you using http / https / file svn protocol ? If yes, that's fine. If you're using svn+ssh protocol, there is an issue on the 0.0.3 (see disclaimer on top of this page)
- When you browse your HUDSON_HOME/scm-sync-configuration/checkoutConfiguration/ directory, is there a .svn directory inside it ?
- When you look into your HUDSON_HOME/hudson.scm.SubversionSCM.xml, is there your repository and your encrypted credentials in it ?
- When you look into your HUDSON_USER_HOME/.subversion/auth/ directory, is there some subdirectories where reside some SVN credentials allowing to connect to your svn repository where configuration files will be synced ?
Aug 30, 2012
Ali Moein says:
I just installed the plugin and it almost works, perhaps its working as its supp...I just installed the plugin and it almost works, perhaps its working as its supposed to? Here is what is happening:
I get a pop up for -m option of SVN and I can submit. All seems to be well at this point except the commit to svn does not take place....
In the $JENKINS_HOME/scm-sync-configuration/checoutConfiguration I see .svn directories
When I do "svn status" I see my changes (additions, modifications)
From here I can do svn commit to "sync" jenkins with SVN, but that's what I'd hope this plugin would do.
------------
Here is additional information, answers to the 4 questions you had for Patrick:
I am using http
I do have .svn directories
I don't have my repository in the hudson.scm.SunversionSCM.xml file! what exactly should in this file? How does this file get updated?
I do have a .subversion directory.
Aug 30, 2012
fcamblor - says:
Hi Ali ! Have you looked at the troobleshooting page ? SubversionSCM.x...Hi Ali !
Have you looked at the troobleshooting page ? SubversionSCM.xml will be filled when you enter scm credentials when prompted (see red message when entering your repository url either in a job or in the scm configuration section in global jenkins configuration page)
Aug 31, 2012
Ali Moein says:
Thanks for your help.... We're up and runningThanks for your help.... We're up and running
Mar 05, 2011
Andrey Stegantsov says:
" If you are trying to synchronize your configuration file with a SVN repositor..." If you are trying to synchronize your configuration file with a SVN repository using another protocol than http/https, synchronization won't occur.
This is related to issue #8871 "
I'm using svn protocol. Peliminary sync with SCM was correct (all config.xml created correctly), but others config's modifications weren't sync with SCM (no any new commits, plugin not asked about commit message and there is no any errors in plugin's log), that's correct?
I supposed that svn protocol won't work at all in this plugin.
Mar 06, 2011
fcamblor - says:
Hi Andrey, The svn protocol limitation appeared in v0.0.3 with issue issue #819...Hi Andrey,
The svn protocol limitation appeared in v0.0.3 with issue issue #8197. This issue wasn't taking into account SVN credentials entered via Hudson/Jenkins. Instead, svn credentials located in your ~/.svn/auth/ directory were used to sync your files (that is ... really not user friendly to debug)
To fix issue #8197 I had to change maven scm provider from svnexe (which relies on your $PATH/svn command) to javasvn (implementation based on java API svnkit).
Problem is : with svnjava, only http / https / file protocols are supported (see the "NOTES" on svnjava home page)
As soon as svn (or others) protocol will be supported in svnjava, only thing I'll have to do is upgrade my version to be compliant.
Finally, what are your log level for scm-sync-configuration ? I think when credentials are not set, I only put a warning message (and not an error one).
Mar 16, 2011
Nikita Zhelyakov says:
Hello! I am using SCM sync configuration plugin v. 0.0.4. But I can't run it...Hello! I am using SCM sync configuration plugin v. 0.0.4. But I can't run it.
I created a local svn repository.
file:///home/nikita/NetBeansProjects/svn/project1/
I added this repository to "Configure System" page (Subversion for SCM sync configuration plugin).
I pressed "Save" button. Nothing happens. Log:
Mar 16, 2011 12:12:57 PM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 16, 2011 12:12:24 PM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 16, 2011 12:11:54 PM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 16, 2011 12:11:54 PM hudson.plugins.scm_sync_configuration.SCMManipulator scmConfigurationSettledUp
INFO: Creating scmRepository connection data ..
How to solve this problem?
Mar 16, 2011
fcamblor - says:
Hi Nikita ! Have you activated some sort of credentials in your local ...Hi Nikita !
Have you activated some sort of credentials in your local svn repository ? (I don't think it will be the case, but I want to be sure)
What is your log level ? "All" ?
Frédéric
Mar 17, 2011
Nikita Zhelyakov says:
My log level is "All". I activated credentials.I added [general] anon-access =...My log level is "All".
I activated credentials.I added
[general]
anon-access = read
auth-access = write
password-db = passwd
to svnserve.conf. And i added
[users]
nikita = 12345
to passwd file. I tried to use svn://localhost/project1/ . It don't work too. The same messages
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
WARNING: SCM Repository has not yet been initiated !
Mar 17, 2011 11:13:07 AM hudson.plugins.scm_sync_configuration.SCMManipulator scmConfigurationSettledUp
INFO: Creating scmRepository connection data ..
Mar 17, 2011
fcamblor - says:
Ok ! Could you try, in a first time, by disabling credentials, to see ...Ok !
Could you try, in a first time, by disabling credentials, to see if it works ?
Then, if it works, re-enable credentials, then go to your hudson system page (http://JENKINS_ROOT/configure) then :
If you don't have any credential prompt for your svn local repo, try to manually go to the following url : http://JENKINS_ROOT/scm/SubversionSCM/enterCredential?file://localhost/project1/
Ensure that your credentials are correctly stored for your realm by opening file JENKINS_HOME/hudson.scm.SubversionSCM.xml
Then, go back to the http://JENKINS_ROOT/configure screen, switch to "no scm", validate form, go back to form and switch to "subversion scm", enter your scm url file://localhost/project1/ then validate.
Does it work ? :-)
Mar 17, 2011
Nikita Zhelyakov says:
I tried to disable credentials. Still it doesn't work. I can't understand what i...I tried to disable credentials. Still it doesn't work. I can't understand what is wrong. :-(
I found https repository. It works perfectly. So i will use this variant.
Thank you very much for help!
Apr 27, 2011
Joe Hansche says:
I am also getting the "WARNING: SCM Repository has not yet been initiated" messa...I am also getting the "WARNING: SCM Repository has not yet been initiated" message in the log. The SVN repository is the same as what all my other jobs use to poll SVN, and those are all working beautifully. Still, this plugin just refuses to do anything, and gives absolutely no explanation why.
My SCM URL is using "svn+ssh://" (with SSH private key authentication), which the SubversionSCM plugin itself has no problems at all with (all jobs that use SVN are using this exact same base URL, and they all work perfectly). I even removed all of my previously saved subversion-credentials, reloaded, and rentered what was needed. On the System Configuration screen, I see that it attempts to login in order to verify credentials, and succeeds. But upon saving any configuration files, I get no "commit message" popup, and my repository is still empty.
I created the svn directory before configuring the plugin (svn mkdir --parents svn+ssh://svn.home/var/svn/config/jenkins/ -m'Initial commit'), and the directory is still empty (maybe I'm not supposed to create the directory first???). I haven't found anything obvious yet, that can explain what I'm doing wrong
But it feels like either something is documented incorrectly, not documented clearly enough, there's a bug, or none of the above and I'm simply blind as a bat..?
Apr 27, 2011
fcamblor - says:
see issue #8871 And FYI, in the JIRA ticket, you never said you were authentica...see issue #8871
And FYI, in the JIRA ticket, you never said you were authenticating through svn+ssh protocol ... everytime, you were speaking about http protocol.
What is the truth about your subversion server coordinates ?
May 03, 2011
Harry Goldschmitt says:
I'm having problems using an svn: URL for backup, too. I'm at Jenkins 1.41 with ...I'm having problems using an svn: URL for backup, too. I'm at Jenkins 1.41 with SCM Sync configuration plugin v0.0.4. I'm getting the "WARNING: SCM Repository has not yet been initiated" warning, too. as well as "WARNING: No credential (realm) found for url [svn://ravesvn/Rave/projects/tier2/trunk/jenkins] : it seems that you should enter your credentials in the UI at <a target='_blank' href='../../scm/SubversionSCM/enterCredential?svn://xxx/yyy/projects/tier2/trunk/jenkins'>this url</a>:
The plugin seems to stall at "INFO: Creating scmRepository connection data .."
I went to the enterCredential URL and entered my user ID and password. No luck. I've verified that I can su to Jenkins and create directories, files, etc. and commit them via svn to the svn: URL via the svn command line.
I can't use http: or https: to get to svn.
Any ideas?
May 03, 2011
fcamblor - says:
As I said earlier, this is related to issue #8871. I'm waiting for some tester...As I said earlier, this is related to issue #8871.
I'm waiting for some testers with svn protocol .. if you mind it...
May 03, 2011
Harry Goldschmitt says:
What do I have to do to test?What do I have to do to test?
May 04, 2011
fcamblor - says:
On the issue, scm-sync-configuration-0.0.5-bugfix8871-1.hpiOn the issue, scm-sync-configuration-0.0.5-bugfix8871-1.hpi
May 10, 2011
wohauser - says:
Is it possible to have the following behavior of the plugin ? If I install an e...Is it possible to have the following behavior of the plugin ?
If I install an empty jenkins and configure the scm-sync-configuration the first time to a scm path that contains a (valid) configuration tree,
then checkout and restore this configuration and restart Jenkins to use the recovered configuration?
For emergency cases, a feature to recover a specific release from scm would be nice.
May 10, 2011
fcamblor - says:
Yup it is planned (see items 3 & 4 in the product backlog section) ... but n...Yup it is planned (see items 3 & 4 in the product backlog section) ... but not for now (since action could be performed "manually" by checkouting jobs and copying checkouted information in JENKINS_HOME)
But it is in my personnal todolist to provide a UI for this
Jun 13, 2011
Andreas Åkesson says:
This plugin seems to be exactly what we need, but unfortunately we do not use SV...This plugin seems to be exactly what we need, but unfortunately we do not use SVN, but git. Do you have a guesstimate on when git support will be added?
I have worked a bit on Hudson plugins (nothing too complicated, just small additions and modifications to existing plugins), but if you're interested, maybe I can take a swing at implementing it?
Jun 13, 2011
fcamblor - says:
It would be great ! I'm not working on this feature for the time being, but th...It would be great !
I'm not working on this feature for the time being, but things are already up to welcome a new SCM implementation (like the git one).
scm-sync-configuration is based on maven-scm-api which provide a scm abstraction among every SCMs.
Feel free to contact me by email if you want further informations / inputs to start this feature
Jul 29, 2011
Ivan Dulin says:
Hey everybody! I have a problem with this plugin. As fcamblor mentioned abo...Hey everybody!
I have a problem with this plugin. As fcamblor mentioned above:
"- When you browse your HUDSON_HOME/scm-sync-configuration/checkoutConfiguration/ directory, is there a .svn directory inside it?"
So that's my cause - by some strange reason all .svn folders are gone. Could someone tell me please how to fix it and what caused the problem?
Jul 29, 2011
fcamblor - says:
Hi, Can you try to put your SCM to "no scm" in scm sync configuration section S...Hi,
Can you try to put your SCM to "no scm" in scm sync configuration section
Save
Then, re-select your subversion scm and fill the scm coordinates.
It will reset your repository (and then re-synchronize everything, then re-put your .svn).
FYI, this could be happened if you changed your credentials on your SVN server, and didn't applied this change in jenkins.
FYI, too, I'm planning to implement this feature of "resetting your current repository" in a future version of the plugin.
Aug 01, 2011
Ivan Dulin says:
Thank you very much for your reply. I updated it to last 0.0.5 version and it s...Thank you very much for your reply.
I updated it to last 0.0.5 version and it switched automatically to 'none' instead of my repository path at plugin settings.
I switched it back to my repository, I saw hudson/home/scm-sync-configuration/checkoutConfiguration/jobs folder was deleted and created in short period of time.
All job configurations and config.xml files was added to checkoutConfiguration folder but there was no .svn folders in it.
I switched repository settings back to 'none' and saved the configuration - checkoutConfiguration folder was deleted.
Then I switched settings back to my repository path, checkoutConfiguration was created, jobs and config.xml files was copied into it but not .svn folders again :-)
Aug 01, 2011
Ivan Dulin says:
But when I changed 'www.[myrepository].com' to '[myrepository].com' .svn folders...But when I changed 'www.[myrepository].com' to '[myrepository].com' .svn folders was added to checkoutConfiguration automatically
Note that I can access my repository with 'www.' and without it.
Aug 01, 2011
fcamblor - says:
I think the answer for this will reside in your JENKINS_HOME/hudson.scm.Subversi...I think the answer for this will reside in your JENKINS_HOME/hudson.scm.SubversionSCM.xml file.
You will see, inside it, that every SVN credentials will be stored with a key which is your "svn realm"
The svn realm is something I don't really catch personnaly, but it is a phrase describing your svn repository (and that is configured on the server side, in the apache configuration, it is configured with the "realm" routine)
And I think in your case, the realm will differ between the 'myrepository.com' and the 'www.myrepository.com' urls so jenkins won't succeed to retrieve credentials for the second one.
Aug 01, 2011
Ivan Dulin says:
Thank you for your plugin and for help :-) I'll check the realm. Anyway withou...Thank you for your plugin and for help :-)
I'll check the realm.
Anyway without 'www' it works fine now.
Aug 01, 2011
fcamblor - says:
Note that you can add an entry in the hudson.scm.SubversionSCM.xml file by going...Note that you can add an entry in the hudson.scm.SubversionSCM.xml file by going to the following url : http://*<jenkins_root>*/descriptorByName/hudson.scm.SubversionSCM/enterCredential?http://www.repository.com
Aug 01, 2011
Ivan Dulin says:
At hudson.scm.SubversionSCM.xml I have both entries for www.myrepository and myr...At hudson.scm.SubversionSCM.xml I have both entries for www.myrepository and myrepository with the same correct credentials.
I think for now it's ok for me just to remove 'www' from my repository url.
Thank you once again.
Aug 30, 2011
Christian Soltenborn says:
Thanks for this plug-in! However, I have a tiny problem with it: synchroniza...Thanks for this plug-in! However, I have a tiny problem with it: synchronization apparently works fine, but I'm never asked for a commit message. Any idea why that is?
Aug 30, 2011
fcamblor - says:
If you're not prompted, I'd say it doesn't work :) What makes you say synchroni...If you're not prompted, I'd say it doesn't work :)
What makes you say synchronization works fine ? Did you read previous comments where I describe how to diagnose problem (particularly the ones where I speak about jenkins console) ?
Aug 30, 2011
Christian Soltenborn says:
Wow, thanks for the fast reply! Well, I checked the SCM Sync pushes into my...Wow, thanks for the fast reply!
Well, I checked the SCM Sync pushes into my repository, and the changes are there - I take this as a hint that it works :-)
I only briefly read through the comments (looking for "commit message"), but all related posts seemed to have more general problems (nothing gets committed).
Aug 30, 2011
fcamblor - says:
Wow ok ... commits are made though ... You're right, you're the first one facin...Wow ok ... commits are made though ...
You're right, you're the first one facing this problem at the moment ...
Could you provide me :
Aug 30, 2011
Christian Soltenborn says:
I have sent to you the according information by email, and I will later update t...I have sent to you the according information by email, and I will later update this thread with the solution. Thanks for your efforts!
Jan 08, 2012
Scott Harrison says:
I am having the same problem, did you find a solution ?.I am having the same problem, did you find a solution ?.
Jan 08, 2012
fcamblor - says:
We had lots of discussions about this problem, without solving the problem Mayb...We had lots of discussions about this problem, without solving the problem
Maybe should you file an issue in JIRA for this problem.
Apr 22, 2012
Vlad Dovlekaev says:
Same problem here. The prompt was shown at first, but after using the 'Don't bot...Same problem here. The prompt was shown at first, but after using the 'Don't bother me for 5 min' option on commit dialog, the commit prompt dialog is not shown anymore. Restarting Jenkins or reloading configuration doesn't help. I've also tried to find the corresponding configuration in the scm_sync to no avail.
However the actual subversion sync is working - no warnings/errors found in the log.
Apr 23, 2012
fcamblor - says:
Ok thanks Vlad for the feedback, I'll try to look at it...Ok thanks Vlad for the feedback, I'll try to look at it...
Jan 08, 2012
Scott Harrison says:
I notice mention of 0.0.5, is this available ? when will it be released ? Also ...I notice mention of 0.0.5, is this available ? when will it be released ?
Also how does this plugin interact with some of the user authentication plugins. It would be nice to be able to login using LDAP and each user can set their own SVN credentials that this plugin uses to commit changes as.
Jan 08, 2012
fcamblor - says:
No planning for 0.0.5, it will be released when needed (I can't make any assumpt...No planning for 0.0.5, it will be released when needed (I can't make any assumption since I work on the plugin only on my spare time
).
SCM Sync configuration plugins is not related to authentication plugin at all.
I personally consider your feature as a corner case, plus it would be tough to implement (I'd prefer to spend effort on better valued items than this one).
Feb 12, 2012
Vlad Dovlekaev says:
It seems I've followed all the recommendations in above comments, but still have...It seems I've followed all the recommendations in above comments, but still have a problem getting my configuration into SVN:
The SCM Sync log says:
Feb 12, 2012 7:32:45 AM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
SEVERE: checkinFiles Problem during commit of [config.xml] : svn: Commit failed (details follow):
svn: MKACTIVITY /<my svn repo>/!svn/act/a78d0c70-3501-0010-a110-ff15c5cd16b4 failed
For each config.xml for every job.
We are using the https based SVN url, all the credentials are there in hudson.scm.SubversionSCM.xml and there are .svn files in /JENKINS_HOME/scm-sync-configuration/checkoutConfiguration
What's missing?
Jenkins: 1.413
SCM Sync plugin: 0.0.4
Feb 12, 2012
Vlad Dovlekaev says:
Solved. It was a SVN permission problem after all.Solved. It was a SVN permission problem after all.
Feb 28, 2012
Liya Katz says:
When do you plan to add sync with git repository?When do you plan to add sync with git repository?
Feb 28, 2012
fcamblor - says:
Bertrand Paquet implemented this feature, we need to take time to integrate it t...Bertrand Paquet implemented this feature, we need to take time to integrate it to master ;)
Time needed on my side :(
Apr 23, 2012
Tomas Kopal says:
Thanks a lot for the plugin. Any chance of getting node configurations under SCM...Thanks a lot for the plugin. Any chance of getting node configurations under SCM too?
Apr 23, 2012
fcamblor - says:
Bertrand Paquet should add a strategy allowing to sync lots of new configuration...Bertrand Paquet should add a strategy allowing to sync lots of new configuration files.
Nevertheless, his implementation won't provide commit message for this large amount of files.
If you want to implement a strategy, it is barely simple :
Don't hesitate to provide a pull request with a strategy if you have some time :-)
Apr 24, 2012
Tomas Kopal says:
Thanks for the fast answer. I had a look at the code and my Jenkins installation...Thanks for the fast answer. I had a look at the code and my Jenkins installation, and found that the nodes are stored in the main config.xml file. So it is already in SCM. The only problem is, that there are triggers for commit message missing when working with nodes.
I think they should be added to JenkinsConfigScmSyncStrategy.java, right? I tried to add them like this:
// Node configuration pages add(new PageMatcher("^computer/\[^/\]+/configure$", "config")); add(new PageMatcher("^computer/\[^/\]+/delete$", "")); add(new PageMatcher("^computer/createItem$", ""));But I hit the problem that the delete and create forms has no name. What should be passed to the PageMatcher in that case? Or do we need a patch to the core to add the name?
Apr 24, 2012
fcamblor - says:
You're right with PageMatcher :) Looking at page decorator, I think you will be...You're right with PageMatcher :)
Looking at page decorator, I think you will be in trouble if you don't provide any form name.
As you said, maybe should we improve footer.jelly behaviour in order to pass a jquery selector allowing to locate target form !
Apr 24, 2012
Tomas Kopal says:
Well, this is getting well above my knowledge of Java and web technologies. I wi...Well, this is getting well above my knowledge of Java and web technologies. I will have to wait and see if anyone more experienced with Jenkins programming finds the time :-(.
Thanks for the help anyway...
Apr 25, 2012
fcamblor - says:
I just made changes to PageMatcher in order to replace targetFormName field by t...I just made changes to PageMatcher in order to replace targetFormName field by targetFormSelector.
Now, you will just have to provide a css selector allowing to retrieve the submitted form on your page.
Some examples :
CSS selectors should be "a la" jquery
Sep 18, 2012
fcamblor - says:
In latest v0.0.6 (I just released), user-defined sync'ed paths should be useful ...In latest v0.0.6 (I just released), user-defined sync'ed paths should be useful to you :-)
May 04, 2012
chanti vlad says:
Hi, thank you firstly for the great work, i think this is what i need. I have ...Hi,
thank you firstly for the great work, i think this is what i need.
I have 2 questions:
* do you have an updated documentation on how to configure/use your plugin with a git repo + the requirements concerning this git repo?
* is there a way to revert the backed up config files and reload them through the plugin ? For example someone screwed up the configuration of a job, i want to be able to use the plugin to revert to the version before his change.
Thanks in advance for your answers
PS: i did not know which page is the most appropriate so i posted this here too: https://wiki.jenkins-ci.org/display/JENKINS/ScmSyncConfig+Troubleshootings
May 04, 2012
fcamblor - says:
Hi, I'll let Bertrand answer your questions regarding the git repo requirements...Hi,
I'll let Bertrand answer your questions regarding the git repo requirements.
For the "retrieve config files" feature, I invite you to watch, vote and eventually comment on this issue ... I think you're not the first waiting for this to be implemented ! ;-)
Frédéric
May 04, 2012
chanti vlad says:
Hi Frédéric, and thanks for the quick answer! I will have a look at the iss...Hi Frédéric,
and thanks for the quick answer! I will have a look at the issue you mention. It would suprise me to be the first one to desire such a feature!
In our team, there are 3 people that can modify/configure Jenkins itself and the jobs, which can lead to confusion (who changed what wen?) so i thought it would be logical to have not only the atomic versioning of any change in the config, but also the restoring of a known-working config.
Thanks again,
Florent
May 04, 2012
Bertrand Paquet says:
Hi There is only one requirement on the git repo : the unix user which run Jenk...Hi
There is only one requirement on the git repo : the unix user which run Jenkins must have access to the git repo.
In my setup, the jenkins user has an ssh keys which is allowed to commit on a private github repo.
Regards,
May 04, 2012
chanti vlad says:
Salut Bertrand, thanks for your answer. So i assume your setup is following: &...Salut Bertrand,
thanks for your answer. So i assume your setup is following:
- Jenkins server running under Linux
- Jenkins user communicating with git+ssh to the specified repo
So let me add a question: what does the plugin do in the git repo when a config change has happend? a Git commit only? a Git commit + git push ?
I am confused because the log file is not so verbose in that matter and i did not look into the source yet.
Thanks
May 31, 2012
Andreas B says:
If you are using the plugin with git and do also manual commits/pushes to the sp...If you are using the plugin with git and do also manual commits/pushes to the specified repo, you may come to a point, where the plugin is not able to push anymore. In this case, you have to do a manual pull + push. To do so, go to the directory $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/ and execute git pull followed by git push. If that was successful, you should delete the file $JENKINS_HOME/scm-sync-configurationfail.log.
At least it worked for me (plugin-version 0.0.5).
Maybe you can change the plugin, so that it always does a pull before a push?
Jun 25, 2012
algoRhythm99 - says:
Has anyone else experienced this plugin causing massive performance problems? W...Has anyone else experienced this plugin causing massive performance problems?
We had to uninstall the plugin because it was causing the garbage collector to run constantly which was pausing the application and making it unresponsive every few minutes.
We have 2350+ jobs currently, FYI so modifying the master configuration also takes forever because of how it does the commits.
Jun 26, 2012
fcamblor - says:
You're right. I just raised issue #14214 adressing this problem.You're right. I just raised issue #14214 adressing this problem.
Sep 18, 2012
fcamblor - says:
FYI, issue #14214 is fixed in v0.0.6. If you want to have a look at async commit...FYI, issue #14214 is fixed in v0.0.6. If you want to have a look at async commit on your large instance, I would be happy to have your feedback.
Aug 09, 2012
Mufaddal Kantawala says:
Have configured SCM Sync Plugin 0.0.5 with Jenkins, however keep getting commit ...Have configured SCM Sync Plugin 0.0.5 with Jenkins, however keep getting commit failed when saving the configs and nothing gets committed to SVN.
I do see .svn folder under scm-sync-configuration/checkoutConfiguration.
We have SVN pre-commit hook set and hence have defined a commit message prefix as JIRA-xxx: [message].
The error that I see in the logs is as below:
Aug 9, 2012 10:54:44 AM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
SEVERE: [checkinFiles] Problem during commit of [[config.xml]] : svn: Commit failed (details follow):
svn: MKACTIVITY /svn/repos/blahblah/!svn/act/92bace0a-3901-0010-a072-57cab3689e81 failed
Aug 9, 2012 10:54:43 AM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
FINE: Checking in SCM files : [config.xml] ...
Aug 9, 2012 10:54:43 AM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
Unable to determine, why the commit fails from the logs. Have configured the SVN credentials using username/password and its authenticated and correctly appears in hudson.scm.SubversionSCM.xml
Would appreciate any help on this.
Thanks
Aug 09, 2012
fcamblor - says:
Have you followed things on the Troubleshoots page ?Have you followed things on the Troubleshoots page ?
Aug 14, 2012
Mufaddal Kantawala says:
Hi, I have got this working by caching the svn username/password in .subversion...Hi,
I have got this working by caching the svn username/password in .subversion folder. This obviosuly is just a work around and would look to find a proper resolution rather than having to use the cached password, since it could be overwritten anytime and the pasword is also stored in plain text.
It looks like the plugin is using the unix user id (id used to start the jenkins process) rather than the id/password specified in the hudson.scm.SubversionSCM.xml. However since the logs do not print the user it is trying to use to check in I cannot confirm the same. As I understand from the forums and documentation v0.0.5 should be using the credentials from the xml file rather than the jenkins process, isnt it. The subversion plugin installed with Jenkins is v1.34 in case that helps as well.
Our Jenkins setup does not have any authentication setup and all jobs run as anonymous user.
Looking forward to hearing back from you
Thanks
Aug 14, 2012
fcamblor - says:
Which subversion protocol are you using ? http | https | svn | sv...Which subversion protocol are you using ? http | https | svn | svn+ssh ?
If this is a protocol other than http/https, I think you're facing issue #8871
Aug 14, 2012
Mufaddal Kantawala says:
Thanks for the prompt response. I think the protocol we are using is http since ...Thanks for the prompt response. I think the protocol we are using is http since we access the SVN using an HTTP URL. Am not sure though. Is there a way I can check and confirm the same.
Aug 14, 2012
fcamblor - says:
Simply have a look at your svn repository url : if it starts with http (as you s...Simply have a look at your svn repository url : if it starts with http (as you stated), it should be http protocol :)
Sep 04, 2012
Carter Sanders says:
Thanks for writing this plugin. I have used it successfully with SVN in the past...Thanks for writing this plugin. I have used it successfully with SVN in the past, and it was very helpful. At my current job, I'm using it with git and have run into an issue. I am only able to get it working with a top level git repo. When I try to give it a git URL + subdir, it fails. IS there some way to get this working with a git subdir? Thanks - Carter
Sep 04, 2012
fcamblor - says:
Hi Carter, Unfortunately, there is no way, for the moment, to have this working...Hi Carter,
Unfortunately, there is no way, for the moment, to have this working.
Maybe could you file an improvement on the Jenkins issue tracker ?
Oct 04, 2012
Olivier Chédru says:
I am unable to install the plugin on Jenkins 1.482: I use "Download now and inst...I am unable to install the plugin on Jenkins 1.482: I use "Download now and install after restart", but the plugin is not present in the list of installed plugins after restart.
Any idea?
Oct 04, 2012
fcamblor - says:
Maybe due to issue #15285. I test scm sync config plugin only on LTS releasesMaybe due to issue #15285.
I test scm sync config plugin only on LTS releases
Oct 04, 2012
Olivier Chédru says:
Thanks, this is indeed this issue. I was quite happy with 1.482 so far. I will ...Thanks, this is indeed this issue.
I was quite happy with 1.482 so far. I will try to revert to 1.466.2...
Oct 05, 2012
Olivier Chédru says:
I actually reverted to version 0.0.5 of the plugin, and it works. I only have o...I actually reverted to version 0.0.5 of the plugin, and it works.
I only have one problem with the commit message pattern: where is it documented? My pre-commit hook is failing, and I'd like to see the actual commit message generated - it does not show up in the plugin logs, even with finest level.
Thanks.
Oct 05, 2012
fcamblor - says:
Yup logs weren't big in 0.0.5 You will have to use the special "[message]...Yup logs weren't big in 0.0.5
You will have to use the special "[message]" identifier to place current message wherever you want.
For instance, if you must prefix your messages with "XXX - ", you should define a commit message pattern like "XXX - [message]"
Oct 05, 2012
Olivier Chédru says:
The trick: I have to prefix my message with "[XXXX]" (e.g. a Jira id between bra...The trick: I have to prefix my message with "[XXXX]" (e.g. a Jira id between brackets). I suppose I have to escape the brackets in this case. Is this supported? If yes, how can I do it?
Thank you!
Oct 05, 2012
fcamblor - says:
Nope ... this is crappy implementation :-D I just hope you'll never have to dis...Nope ... this is crappy implementation :-D
I just hope you'll never have to display the string "[message]" as a prefix/suffix commit message for your issue tracker ;-)
Oct 05, 2012
Olivier Chédru says:
Not so crappy. Actually, it works fine and I managed to sync my conf. Thanks a ...Not so crappy. Actually, it works fine and I managed to sync my conf.
Thanks a lot for your support.
Oct 16, 2012
Alex Dover says:
Plugin fails to start after install: Stacktrace removedPlugin fails to start after install:
Oct 16, 2012
fcamblor - says:
Please look at issue tracker before posting stacktraces. ThanksPlease look at issue tracker before posting stacktraces.
Thanks
Oct 16, 2012
Alex Dover says:
My bad, thanks. Installed 0.0.5 for now.My bad, thanks.
Installed 0.0.5 for now.
Oct 16, 2012
fcamblor - says:
No problem. In any case, I added a disclaimer in the starting wiki page for thi...No problem.
In any case, I added a disclaimer in the starting wiki page for this particular blocking issue :-)
Dec 17, 2012
Olivier Chédru says:
I just changed the URL to the svn repository I use to save the Jenkins conf: is ...I just changed the URL to the svn repository I use to save the Jenkins conf: is there a way to tell the plugin to commit everything again?
My new repo is empty for now.
Dec 17, 2012
fcamblor - says:
I think your problem is related to issue #15221 which is a regression. Maybe co...I think your problem is related to issue #15221 which is a regression.
Maybe could you switch to "No scm", save, then re-enable the subversion scm, on the global jenkins configuration page ?
Dec 17, 2012
Olivier Chédru says:
Thanks! That did the trick.Thanks! That did the trick.
Jan 02, 2013
Vlad Dovlekaev says:
We are using SCM Sync plugin version 0.0.6.1 on Jenkins 1.466.2 . It is configur...We are using SCM Sync plugin version 0.0.6.1 on Jenkins 1.466.2 . It is configured to use our SVN repository (https based).
It seems that SCM Sync plugin is using SVN client 1.7 even when Jenkins subversion plugin is configured to use the 1.6 subversion workspace version. While it is working even when our SVN server is 1.6, it still presents a problem for us, since we have no SVN 1.7 client installed on our Jenkins server.
Since SVN client 1.7 has different file layout schema than 1.6 clients - it is impossible to use our SVN 1.6 client in case where a SCM Sync plugin reported problems need to be fixed manually.
Is there any workaround for this problem, without installing 1.7 SVN client on Jenkins server ?
Thanks
Vlad.
Jan 02, 2013
fcamblor - says:
Hi Vlad, SCM Sync Config plugin relies on svn java v1.12 implementation. So it...Hi Vlad,
SCM Sync Config plugin relies on svn java v1.12 implementation.
So it isn't compatible with svn 1.7 servers.
=> I don't think your assumption is right there
How are you configuring SVN to access your svn repository ? Https with a certificate ?
Wouldn't you facing issue #14792 ?
Jan 03, 2013
Vlad Dovlekaev says:
Thanks for quick reply. We are using Https. Probably I'm wrong of cause as you...Thanks for quick reply.
We are using Https.
Probably I'm wrong of cause as you said, but that's what I'm seeing when using SVN 1.6 client:
[checkoutConfiguration]$ pwd /jenkins-server/Home/scm-sync-configuration/checkoutConfiguration [checkoutConfiguration]$ svn --version svn, version 1.6.16 (r1073529) ... [checkoutConfiguration]$ svn info svn: The path '.' appears to be part of a Subversion 1.7 or greater working copy. Please upgrade your Subversion client to use this working copy.What am I missing?
BTW, on previous version of the plugin (0.0.6) this problem didn't exist, so we could our current svn client successfully
Feb 14, 2013
Dave Abrahams says:
Not working for me with Git + SSH: Feb 14, 2013 6:47:50 PM hudson.plugins.scm...Not working for me with Git + SSH:
Am I doing something wrong?
Feb 22, 2013
Yimin Li says:
Thanks for the plugin. It would be great if user's config.xml is saved too.Thanks for the plugin. It would be great if user's config.xml is saved too.
Feb 22, 2013
fcamblor - says:
You can, with custom includes (see here). Don't hesitate to share your own incl...You can, with custom includes (see here).
Don't hesitate to share your own includes on this page
May 23, 2013
Luiz Casey says:
Sorry, not sure if it is SCM sync related or not. For some reason "..modules/org...Sorry, not sure if it is SCM sync related or not. For some reason "..modules/org.module.blah/config.xml" keeps changing. It keeps adding and removing <actions/> on every build on every module. Is there a way to avoid this? So basically I am getting hammered with svn commits for modules that really haven't changes but for some reason the config.xml added or removed "<actions/>"
May 23, 2013
fcamblor - says:
Seems like you're hitting issue #17545, fixed yesterday. I'm waiting for some t...Seems like you're hitting issue #17545, fixed yesterday.
I'm waiting for some testers for this fix
May 23, 2013
Luiz Casey says:
Thanks for letting me know. Let me know if you need additional help testing this...Thanks for letting me know. Let me know if you need additional help testing this. Will keep a watch for the updated version.
May 23, 2013
fcamblor - says:
If you can download attached hpi of the plugin & install it on your instance...If you can download attached hpi of the plugin & install it on your instance, it would be great to let me know if this fixes the problem.
I'm waiting for someone confirming this before releasing a new version including this fix.
May 23, 2013
Luiz Casey says:
Tested the fix and it works great. No extra commits.Tested the fix and it works great. No extra commits.
Aug 07, 2013
Jeff Rodgers says:
Does this plugin support authentication modules? We are using the Assembla ...Does this plugin support authentication modules? We are using the Assembla Auth Plugin and we are getting errors on the initial file check-in. Also, the usernames (and thus config files) have some special characters in them and that may also be causing a problem. The characters are '@', ' '(space), and '-'(hyphen).
The errors are:Aug 05, 2013 2:40:19 PM hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness processCommitsQueue
SEVERE: Error while processing commit queue : Error while checking in file to scm repository
Aug 05, 2013 2:40:19 PM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
FINER: THROW
hudson.plugins.scm_sync_configuration.exceptions.LoggableException: Error while checking in file to scm repository
at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.processCommitsQueue(ScmSyncConfigurationBusiness.java:213)
at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.access$000(ScmSyncConfigurationBusiness.java:29)
at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:143)
at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness$1.call(ScmSyncConfigurationBusiness.java:141)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Aug 05, 2013 2:40:19 PM hudson.plugins.scm_sync_configuration.SCMManipulator checkinFiles
SEVERE: checkinFiles Problem during SCM commit : svn: E175002: Commit failed (details follow):
svn: E175002: MKACTIVITY /svn/cM4yhIeeur34JreJe5aVNr/!svn/act/f497fe4f-4001-0010-9fbf-dfeefd79ea9f failed
Aug 05, 2013 2:40:19 PM hudson.plugins.scm_sync_configuration.SCMManipulator
FINE: Checking in SCM files ...
Aug 05, 2013 2:40:19 PM hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness
FINEST: Processing commit : Commit hudson.plugins.scm_sync_configuration.model.Commit@72d3f521 :
Aug 07, 2013
fcamblor - says:
Hi Jeff ! Have you looked at the troobleshooting page ? If you go inside the J...Hi Jeff !
Have you looked at the troobleshooting page ?
If you go inside the JENKINS_HOME/scm-sync-configuration/checkoutConfiguration/ and try to manually commit these files (using regular svn command), what happens ?
Aug 09, 2013
Jeff Rodgers says:
Yes, I did go through the troubleshooting page, setup logging, looked at the log...Yes, I did go through the troubleshooting page, setup logging, looked at the logs and the source code. But I couldn't find anything about how authentication is handled.
And yes, I tried checking in the files manually and it worked without error.
Aug 10, 2013
fcamblor - says:
Could you please file an issue about your problem, this will be a better place t...Could you please file an issue about your problem, this will be a better place to discuss about this.
You could eventually describe, inside it :
Thanks in advance
Oct 09, 2013
Sreenitha K says:
Hi All,I have installed and configured the scm-sycn-configuration plugin and I h...Hi All,I have installed and configured the scm-sycn-configuration plugin and I have modified the Jenkins configuration, Job configuration , and also modified the manage Jenkins page.
* If I modify a job configuration a config.xml is committed under folder <repository_root>\job_name
* If I modify a Jenkins configuration like modifying nodes etc then a config.xml is committed under root.
* If I modify anything in manage Jenkins then some Jenkins related files are committed under root.
I need only config.xml under job_name folder. Is there any option to exclude other commits?
Is there any option to commit the files in to a user defined path or subfolders of git repo like <repository_root>\jenkins?
Oct 09, 2013
fcamblor - says:
Hi ! I think you might be interested in watching issue #19659 & issue ...Hi !
I think you might be interested in watching issue #19659 & issue #18187
Jan 07, 2014
Gábor Lipták says:
Hi, I think, there must be some concurrency issue with the plugin. We have a lo...Hi,
I think, there must be some concurrency issue with the plugin. We have a lot of jobs and slaves, so our Jenkins master has load. I happened to change several jobs the following way:
1. opening several job config pages in several browser tabs
2. doing small change in one job config
3. pasting comment for saving the configuration of the job
4. close the tab, and go to next job with step 2.
I noticed, that the comment I defined is not always saved correctly. My name is always there, and the job name as well, but the comment not. I would tip on that the sync plugin commits to git in a separate thread, and somehow the commit comment "field" is somehow cleared, when the next job pops up the commit comment dialog. I am pretty sure, that it is a concurrency issue.
Anyone noticed this as well?
My version of the plugin is 0.0.7.3, and Jenkins version is 1.544.
Regards,
Gábor Lipták
Jan 07, 2014
fcamblor - says:
Hi, You're right, there *might* be concurrency issues because of the wa...Hi,
You're right, there *might* be concurrency issues because of the way the plugin works.
If you look at the ScmSyncConfigurationDataProvider class, you'll see I use the current user session to store & retrieve things (particularly commit comment).
This is done in order to be able to plug the "commit comment" popup on every potential jenkins page.
Typical workflow :
=> That is to say, if another tab is submitted during steps 4 & 6 AND these tabs use the same user session as yours (that is to say : you submit another form on another tab) there might be cases where messages could be mingled.
However, given my current jenkins plugin dev knowledge, I don't know how I could improve this .. for the time being, I think we should live with it.
But I'm opened to any suggestion
Jan 07, 2014
Gábor Lipták says:
Hi, If there would be something like TAB ID, which would be appended to the ses...Hi,
If there would be something like TAB ID, which would be appended to the session scope variable name, then we would have no such problem. I sadly have no idea, if any mechanism is in Jenkins to distinguish between browser tabs on server side. Maybe others know about this more.
Till then maybe it is nice to state in the documentation, that this is a known issue with the plugin and the Jenkins infrastructure.
Regards,
Gábor
Jan 07, 2014
fcamblor - says:
Unfortunately I don't think it will work. If I were able to submit the tab id al...Unfortunately I don't think it will work.
If I were able to submit the tab id alongside the configuration form data (step 5), I would be able to submit the commit comment message as well.
Problem is : I can't associate generically my data with every potential jenkins model data
This is the reason why I make it in a 2-steps submission.
Jun 13, 2014
Gábor Lipták says:
Hi, I have a strange bug. I cannot save my changes to a job. If I change only t...Hi,
I have a strange bug. I cannot save my changes to a job. If I change only the description and I save it, it works. If I delete a parameter, I click on save, the popup for the message comes, I click on submit, and nothing happens. I am still on the configuration page, and the save button does not have any effect anymore. The javascript console contains this:
Uncaught TypeError: Cannot set property 'submit' of null codemirror.js:1531
wrappedSubmit codemirror.js:1531
(anonymous function) scm-sync-configuration-page-handler.js:104
ajaxCallParams.onSuccess scm-sync-configuration-page-handler.js:70
Ajax.Request.Class.create.respondToReadyState prototype.js:1657
Ajax.Request.Class.create.onStateChange prototype.js:1600
(anonymous function)
Any idea?
Regards,
Gábor Lipták
Jun 13, 2014
Gábor Lipták says:
Saving once the description with "dont disturb me for 1 hour for any config" is ...Saving once the description with "dont disturb me for 1 hour for any config" is a known workaround. Of course then I cannot define message.
Jun 19, 2014
Michael Loo says:
Hi there, First of all, thanks for your hard work. Very much appreciated :) I ...Hi there,
First of all, thanks for your hard work. Very much appreciated :)
I encountered some issues when trying to get it running though.
My current setup is Jenkins 1.562 and SCM Sync configuration plugin version 0.0.7.4.
I also have a bitbucket repository which I want to use for backing up the Jenkins' config with your plugin.
I am having an issue with committing and pushing to the git repository. I did add the git repository url to the SCM Sync configs in *Manage Jenkins > Configure System *and I do get the pop up box asking for a comment. But once I submit the comment, the changes are not committed and pushed to the remote git repository. Here is the last log from the log recorder:
Jun 19, 2014 2:20:12 PM FINE hudson.plugins.scm_sync_configuration.SCMManipulator Checking in SCM files ... Jun 19, 2014 2:20:12 PM FINE hudson.plugins.scm_sync_configuration.SCMManipulator Checked in SCM files ! Jun 19, 2014 2:20:12 PM FINEST hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness Commit Commit hudson.plugins.scm_sync_configuration.model.Commit@389854f1 : Author : <Author> Comment : Jenkins configuration files updated by <Author> with following comment : Commit this Changeset : A hudson.scm.SubversionSCM.xml A hudson.tasks.Shell.xml A scm-sync-configuration.xml A hudson.plugins.git.GitTool.xml A hudson.scm.CVSSCM.xml A hudson.tasks.Mailer.xml A config.xml A hudson.tasks.Ant.xml A hudson.tasks.Maven.xml A hudson.plugins.git.GitSCM.xml A hudson.triggers.SCMTrigger.xml A hudson.plugins.emailext.ExtendedEmailPublisher.xml A hudson.maven.MavenModuleSet.xml pushed to SCM !As you can see above, the log is stating that the changes have been "pushed to SCM", and pardon my lack of knowledge, but although the changes were indeed saved into the $JENKINS_HOME/scm-sync-configuration/checkoutConfiguration, it hasn't been committed to the git repo.
My question is: Is the plugin supposed to commit and push to the git repo as well? Or should I manually add a cron job to perform this operation?
Ideally the plugin would be doing that after submitting the changes to SCM so that we do not have to have a cron job to check for differences and commit/push.
Regards,
Michael Loo
Jul 02, 2014
Justin DeLaney says:
I had the same problem...it's probably related to this: https://issues.jenkins-...I had the same problem...it's probably related to this:
https://issues.jenkins-ci.org/browse/JENKINS-22820
I downgraded my Jenkins VM git version to 1.7.10.msysgit.1, and the commits actually move up
Jul 14, 2014
zhao liting says:
nice work! I found this plugin didn't trigger when I use Jenkins-API to cre...nice work!
I found this plugin didn't trigger when I use Jenkins-API to create job(like 127.0.0.1:9080/jenkins/createItem?name=JobName), is there any way to force sync to SCM?
Jul 22, 2014
Kathryn McClintic says:
Hi all, Thanks for the awesome plug in. I was looking for a plugin which integr...Hi all,
Thanks for the awesome plug in. I was looking for a plugin which integrated Perforce and the Job Config History Plugin so that the config files could be managed by Perforce. Originally I was going to edit the job config history plugin source code to accomplish this but then I found this plugin. Has anybody tried modifying it to run with Perforce or are plans in the works to do this? Also, if anyone has any thoughts on the feasibility of doing this, I would appreciate you sharing them with me.
Thank you!
Jan 05
Wen Zhou says:
Hi, I can see my changes in job's config has been committed into 1. jenkinsdat...Hi,
I can see my changes in job's config has been committed into
1. jenkinsdata/scm-sync-configuration/checkoutConfiguration/.git
2. Git repo in "configure system" setting.
But still, prompt dialog did not show up to ask for commit message.
the current commit message in both repos with format:
Job <job_name> configuration update by <user>
Thanks!
Add Comment