jenkinsjenkins-pluginsjenkins-scriptlerjenkins-cli

How can I edit the content of .properties file?


I am using Jenkins server with perforce. My build get stored in a local repo path in ".zip" format which contains all the file including (say) abc.properties. This file contains data:

#Thu Jun 09 12:13:14 MSD 2011
BuildType=dev
FrameworkBuild=200
ProductVersion=4.40.00
SoftwareFeatureID=34670101
BuildNumber=0
FrameworkVersion=2.47.00

In this abc.properties file BuildNumber = 0 is a default value(set in perforce). My old build system updates the BuildNumber value with current build number in the zip file.

How can I achieve the same in Jenkins.

Thanks in advance.


Solution

  • Use maven or gradle for this, jenkins is not a build tool.