ant - Jenkins commit a file after successful build -


i using jenkins, ant , flex , java web application. update build version file in flex src , commit before starting jenkins build. want avoid manual process , let script me.

contents of file:

build=01_01_2013_10:43
release=2.01

question1: want update file contents , compile code , commit file svn. svn has latest build version number.

how commit changed file svn. great if commit happens after successful build.

question2: want send email developers hour before build starts. "please commit changes. build start in 1 hr." can set delay between email , (actual svn export + ant build).
or
have schedule 2 jobs hour apart. 1 send email , 1 build.

you can use subclipse svn ant integration commit changed files svn including authentication:

<svnsetting       svnkit="true"       username="bingo"       password="bongo"       id="svn.settings"   /> <svn refid="svn.settings">     <commit file="your.file" /> </svn> 

to username , password build file have different options. 1 use parametrized build, define user name , password build parameters can evaluated in build file.

      username="${parameter.svn.username}"       password="${parameter.svn.password}" 

a second option using jenkins config file provider plugin. can use parameters parametrized build, import credentials provided config file, e.g. properties file can imported via

<property file="config.file" /> 

actually can use ant's exec task execute subversion commit file.

for sending e-mail 1 hour before building, should setup 2 jobs, scheduled 1 hour apart. don't think practice notify before building, consider build more maybe per commit svn.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -