We have been successfully using maven and envinject to insert
releasenumber into the manifest.mf of all of our artifacts. The
properties file is generated at the start of the release cycle and
lives outside of jenkins on the filesystem of our nodes. It's been
working great!

Now we need to add the build date to the releasenumber and include it
in the manifest. We tried at first injecting the properties file as we
had done, then manipulating the releasenumber variable and writing the
new entry to a new properties file in the workspace, injecting it as a
build step. While other elements picked up the new releasenumber
value, the manifest.mf files were reading the value from the initial
read of the properties file on the filesystem.

So I decided to change the name of the var in this properties file to
RN and read it in as usual. In the script content of the same
envinject stanza, I set releasenumber=$RN.$(date +%m%d)

Once again in every other place but manifest.mf, the releasenumber
variable is displayed correctly. But in the manifest.mf it shows
{releasenumber}.

I'm stumped. Does anyone have any suggestions?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to