maven - Jenkins - How to pass values from pom.xml to downstream job (free style) -


i've set 2 free style jobs, build-app , deploy-app. build-app poll scm , builds app, maven based, , install artifact in web server (internal repository server), calls deploy-app. pass version of pom file () downstream job can download correct artifact , install on machine. found answers suggesting put version string in properties file , use injectenv plugin, prefer read pom itself. ideas?

thanks!

when build inside maven, have access pom file version ${program.version} , can wish it.

the downstream freestyle job can run maven using same pom different target. version should same if take care keep changing in interim. (this suggests procedure should followed.)

so, example, maven target can run groovy script or ant script pick correct file repo , deploy it.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -