If this file is in standard key-value format then it's a standard Java properties file. You can write a small groovy script that you can execute from the Jenkins script console to read, modify it and re-save it.
I have a groovy scriptlet that reads a particular property key from a properties file on the Jenkins server. Maybe you can modify it to do what you want. Find it here: https://github.com/imoutsatsos/jenkins-scriptlets/blob/master/UC_helper_getStaticPropertyKey.groovy Hope this helps Ioannis On Wednesday, February 11, 2015 at 12:10:41 PM UTC-5, [email protected] wrote: > > Hi, > > I have a custom properties file where i have some variables, now i need > change it but i don't know how to modify this file. I tried some shell > script and jenkins plugins but it doesn't work to me. Any idea how to do > it? > > I am working with a Windows Server 2008 R2 and the file is at > *C:\jenkins\currentBrowser.properties* and the content is just *browser = > explorer* > > Thanks > -- 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/c61890f8-90f4-4e32-9918-ce0f832775dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
