If you want to back up the project XML file, (assuming Linux), you could do a script step like this. You should be able to extend this after you get the idea.
config_file="$JENKINS_HOME/jobs/$JOB_NAME/config.xml" cp $config_file $config_file.`date +'%F_%H_%M_%S’` Or something like cp $config_file /some/backup/dir/config.xml.`date +'%F_%H_%M_%S’` -- Adam vonNieda [email protected] > On Dec 24, 2018, at 9:52 PM, Poovaraj Thangamariappan > <[email protected]> wrote: > > Hi, > > I want to take a backup of specific project in jenkins workspaces after > successfull / failed every build ? Plesae let me know how to take a backup ? > > Regards, > Poovaraj > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/ac4611ca-b620-4ab4-9fa8-00f610134a77%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-users/ac4611ca-b620-4ab4-9fa8-00f610134a77%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/163208D1-B4FE-4547-A147-68E8B51C2275%40vonnieda.org. For more options, visit https://groups.google.com/d/optout.
