scm-sync-configuration-plugin | Jenkins scm-sync-configuration plugin | Configuration Management library
kandi X-RAY | scm-sync-configuration-plugin Summary
kandi X-RAY | scm-sync-configuration-plugin Summary
Jenkins SCM Sync Configuration Plugin.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Consumes a stream line
- Relatizes the given parent path
- Converts a byte to hex
- Removes the quotes from the given string
- Called when an item is location changed
- Builds a relative path relative to the given file
- Configures the repository
- Synchronize all configured schemcs
- Executes git checkout in command line
- Creates command line for push to push
- Create a commit message for a commit
- Return a list of files matching the given root directory
- Executes the git command
- Override if item is deleted
- Obtains the SCM implementation from the given String
- Initializes this instance
- Called when a saveable file is changed
- Check if this path contains a path
- Validates the git repository URL
- The commit message factory
- Unmarshals the ScmSyncConfiguration plugin into an object
- Reads the scm sync configuration from the stream
- Marshals the given source object
- Extracts SVN credentials for the given realm
- Executes the add command
- This method implements ScmSyncConfiguration
scm-sync-configuration-plugin Key Features
scm-sync-configuration-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on scm-sync-configuration-plugin
QUESTION
Jenkins version: 1.642.3
SCM Sync Configuration Plugin version: 0.0.10
I created a private repository for storing Jenkins job's configuration (which is the git url that I'll use in Jenkins's Global configuration page while configuring this plugin). As I created a private repo (which is not open to anyone), I had to add any collaborators (jenkins
service user which is running Jenkins master process on the Jenkins master server). If in your case, it's different, look for user name user.name
under Manage Jenkins > System Information
for the user which is running Jenkins process otherwise, you'll get an error that OS user doesn't have access to the repository or permission denied (Public Key). One other solution is to generate ssh key (ssh-keygen -t rsa
and once the Key files are generated, putting the .pub public key in your Github user's SSH settings section: https://git.instance.yourcomany.com/settings/ssh).
One Important Note: While configuring the logger, if you accidentally pick hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin as it shows up in the list of available options (vs using the correct value which is hudson.plugins.scm_sync_configuration) then logger will NOT log anything. The above setting will make this plugin not log anything in the logger, so make sure you set the logger to the correct value.
AFTER this, everything is looking good so far in Jenkins main Global configuration page for configuring this plugin (no errors there) and at the right bottom of Jenkins home page, I can see "SCM Sync status : Last operation @ Tue Jul 25 11:55:43 PDT 2017"
I created a dummy job (and did echo something && sleep 60
in the build step) and tried to make few changes to this build step for changing the sleep time to some random values.
My expection was I should have been prompted for making any changes to the Jenkins job and that Jenkins job should be checked-in in the given GIT repo (as now the pub key for jenkins user is all set). PS: I'm succesfully able to clone from this repo in another test jenkins job (running on master
node) + I'm also able to successfully git clone + git push to this repo from Jenkins master server (just added README.md myself as jenkins user). In the logger's log, I can see:
ANSWER
Answered 2017-Jul-26 at 03:45Goto Jenkins -> Manage Jenkins -> Configure System. Under SCM Sync Configuration section look for "Never bother me with commit messages" configuration.
If you want Jenkins to prompt for commit messages when Job has been modified, Uncheck the option "Never bother me with commit messages".
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install scm-sync-configuration-plugin
You can use scm-sync-configuration-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the scm-sync-configuration-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page