We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

topher1120
Posts: 1
Joined: Fri Jul 15, 2016 12:20 am

Jenkins Plugin build variables

Hi,
I'm building a simple installer in Jenkins, and would like to use build variables as part of the version and package name, but can't seem to get them working. Specifically, I'd like to use SVN_REVISION as part of the version and part of the package name.
From the plugin documentation for the "Additional Commands" section, it states:
You can use build variables through the syntax ${VAR} or $VAR. E.g. SetVersion x.x.x
I have the Advanced Installer Jenkins plugin installed and configured. In the "Additional Commands" section, I've added "SetVersion 1.1.${SVN_REVISION}", the build fails with
SetVersion 1.1.${SVN_REVISION}
The version format is incorrect.
Looking at this, it appears that SVN_REVISION is not being interpolated, but I'm not sure why. If I change the line to "SetVersion 1.1.1", it builds fine.

I am using Advanced Installer 13.0 Freeware on Windows Server 2012 R2.

What am I missing to make this work?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Jenkins Plugin build variables

Hello and welcome to our forums,

This may happen if the related build parameter (e.g. SVN_REVISION) is not defined for the current build. Can you please make sure the following option is checked in your build configuration:
"This project is parameterized" and that the "SVN_REVISION" parameter is correctly defined?
image.jpg
image.jpg (141.5 KiB) Viewed 1969 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”