Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Commit file from Jenkins workspace to SVN

I have a saved project in Subversion repository and compiles it with Jenkins. When I run the build, Jenkins pulls project into workspace directory. I need commit one changed file from Jenkins workspace into Subversion. How can I do it??

Thanks for answers...

like image 402
jjaros Avatar asked Jan 23 '15 07:01

jjaros


People also ask

How do I commit to a svn repository?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

Is svn supported on Jenkins?

Jenkins can poll Subversion repositories for changes, and while this is reasonably efficient, this can only happen up to every once a minute, so you may still have to wait a full minute before Jenkins detects a change.


1 Answers

You could carefully use:

svn commit -username someuser -password %injected_password% 

to inject password in Build Environment, this command injects passwords to the build as environment variables

Watch out: that password might be visible in the job trigger batch.

like image 148
Ato Avatar answered Oct 06 '22 21:10

Ato