github - SCM Sync configuration plugin - Jenkins GIT prompt issue -


jenkins version: 1.642.3

scm sync configuration plugin version: 0.0.10

i created private repository storing jenkins job's configuration (which git url i'll use in jenkins's global configuration page while configuring plugin). created private repo (which not open anyone), had add collaborators (jenkins service user running jenkins master process on jenkins master server). if in case, it's different, user name user.name under manage jenkins > system information user running jenkins process otherwise, you'll error os user doesn't have access repository or permission denied (public key). 1 other solution generate ssh key (ssh-keygen -t rsa , once key files generated, putting .pub public key in github user's ssh settings section: https://git.instance.yourcomany.com/settings/ssh).

one important note: while configuring logger, if accidentally pick hudson.plugins.scm_sync_configuration.scmsyncconfigurationplugin shows in list of available options (vs using correct value hudson.plugins.scm_sync_configuration) logger not log anything. enter image description here above setting make plugin not log in logger, make sure set logger correct value.

after this, looking far in jenkins main global configuration page configuring plugin (no errors there) , @ right bottom of jenkins home page, can see "scm sync status : last operation @ tue jul 25 11:55:43 pdt 2017"

i created dummy job (and did echo && sleep 60 in build step) , tried make few changes build step changing sleep time random values.

my expection should have been prompted making changes jenkins job , jenkins job should checked-in in given git repo (as pub key jenkins user set). ps: i'm succesfully able clone repo in test jenkins job (running on master node) + i'm able git clone + git push repo jenkins master server (just added readme.md myself jenkins user). in logger's log, can see:

jul 25, 2017 11:53:37 fine hudson.plugins.scm_sync_configuration.scmmanipulator checkinfiles checking in scm files ... jul 25, 2017 11:53:37 fine hudson.plugins.scm_sync_configuration.scmmanipulator checkinfiles checked in scm files ! jul 25, 2017 11:53:37 finest hudson.plugins.scm_sync_configuration.scmsyncconfigurationbusiness processcommitsqueue commit commit hudson.plugins.scm_sync_configuration.model.commit@5d951ea :    author : asangal   comment : asangal: jenkins configuration files updated  change performed asangal    changeset :      hudson.scm.subversionscm.xml     hudson.plugins.ansicolor.ansicolorbuildwrapper.xml     hudson.plugins.git.gittool.xml     hudson.scm.cvsscm.xml     hudson.tasks.mailer.xml     hudson.plugins.gradle.gradle.xml     hudson.tasks.ant.xml     hudson.plugins.git.gitscm.xml     hudson.plugins.groovy.groovy.xml     jenkins.plugins.publish_over_ssh.bapsshpublisherplugin.xml     hudson.triggers.scmtrigger.xml     hudson.maven.mavenmoduleset.xml     jenkins.mvn.globalmavenconfig.xml     jenkins.model.artifactmanagerconfiguration.xml     hudson.tasks.shell.xml     scm-sync-configuration.xml     hudson.plugins.copyartifact.triggeredbuildselector.xml     config.xml     hudson.tasks.maven.xml     jenkins.metrics.api.metricsaccesskey.xml     hudson.plugins.timestamper.timestamperconfig.xml     jenkins.model.jenkinslocationconfiguration.xml     hudson.plugins.build_timeout.operations.buildstepoperation.xml     hudson.plugins.mercurial.mercurialinstallation.xml     hudson.plugins.emailext.extendedemailpublisher.xml     hudson.plugins.throttleconcurrents.throttlejobproperty.xml   pushed scm ! jul 25, 2017 12:49:48 pm finest hudson.plugins.scm_sync_configuration.scmsyncconfigurationbusiness queuechangeset queuing commit commit hudson.plugins.scm_sync_configuration.model.commit@5511458b :    author : asangal   comment : asangal: job [dummy_job] configuration updated  change performed asangal    changeset :      jobs/dummy_job/config.xml   scm ... jul 25, 2017 12:49:48 pm finest hudson.plugins.scm_sync_configuration.scmsyncconfigurationbusiness processcommitsqueue processing commit : commit hudson.plugins.scm_sync_configuration.model.commit@5511458b :    author : asangal   comment : asangal: job [dummy_job] configuration updated  change performed asangal    changeset :      jobs/dummy_job/config.xml   jul 25, 2017 12:49:48 pm fine hudson.plugins.scm_sync_configuration.scmmanipulator checkinfiles checking in scm files ... jul 25, 2017 12:49:48 pm fine hudson.plugins.scm_sync_configuration.scmmanipulator checkinfiles checked in scm files ! jul 25, 2017 12:49:48 pm finest hudson.plugins.scm_sync_configuration.scmsyncconfigurationbusiness processcommitsqueue commit commit hudson.plugins.scm_sync_configuration.model.commit@5511458b :    author : asangal   comment : asangal: job [dummy_job] configuration updated  change performed asangal    changeset :      jobs/dummy_job/config.xml   pushed scm ! 

questions:

1) why didn't prompted when made changes jenkins job?

2) why i'm not seeing commits (which logger showing checked-in / pushed, in log) target git repo? github repo shows readme.md file far.

3) did plugin checked-in files , pushed?

goto jenkins -> manage jenkins -> configure system. under scm sync configuration section "never bother me commit messages" configuration.

if want jenkins prompt commit messages when job has been modified, uncheck option "never bother me commit messages".


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -