NeptuneZ
NeptuneZ

Reputation: 618

Commit Maven assembly from Jenkins workspace to SVN

I want to know if there is a way to creat a Job inJenkins that commits a Maven assembly archive containinig sensitive data that i dont want to share in Nexus, generated with this Maven Goal

-X -Pprod clean install 

in

Jenkins-Workspace/project/target/archive-prod.tar.gz

to My SVN repository like this

    |branches
    |trunk
    |tags
       |project-version
       |project-config-version
           |archive-prod.tar.gz

Thank you

Upvotes: 1

Views: 42

Answers (1)

oblio
oblio

Reputation: 1633

If you’re sure you really want this, I’m not sure there’s a plugin for it, but you can script it.

Add a shell step to the build that does the command line operations with the svn command. Make sure that the svn command on the desired agent has the credential and the access right to commit the files.

If your job is a Maven style job you will need a post build step. But even better, just make a new Freestyle job where the Maven part is just a regular step and add the new shell step.

Upvotes: 1

Related Questions