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!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Build number in URL

Hello,

I have changed the build email notification template to produce the following body in my emails:

Location \\<servername>\binaries\Integration\Agent\3.0\ #101

What I want to have is this:

Location \\<servername>\binaries\Integration\Agent\3.0\101

How do I get rid of the # ?

Here is the line in the template that does this:

<div> Location \\<servername>\binaries\Integration\Agent\3.0\ <@common.short_build_info build/></div>
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Build number in URL

Hello and welcome to Advanced Installer forums,

I am not sure I understand what you mean by this. Can you please give us more details?

Do you need to change that URL at install time in a file? This can be done with Text File Updates.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

Please see the attached file.

It is a screen capture of the EMAIL that is generated when a build successfully completes.

what I want to change is the URL within the body of the email to include the build number, similar to this:

Location \\<servername>\binaries\Integration\Agent\3.0\101
Attachments
BuildEmails.PNG
BuildEmails.PNG (62.38 KiB) Viewed 14008 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

Anybody have any luck with this yet?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Build number in URL

Hello,

Is that e-mail generated from an HTML file? How are you appending the #101 to the URL?

Advanced Installer can help you update files at install time. You need to give us more details to see if this can be done with the predefined support, otherwise the solution would be a custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

Mihai,

The line comes right out of your "build_successful.ftl" file, here is the contents of the file... I have annotated the line I added:


<#-- Uses FreeMarker template syntax, template guide can be found at http://freemarker.org/docs/dgui.html -->

<#import "common.ftl" as common>
<#import "responsibility.ftl" as resp>

<#global subject>[SUCCESSFUL] Build ${project.fullName} :: ${buildType.name} <@common.short_build_info build/></#global>

<#global body>Build ${project.fullName} :: ${buildType.name} <@common.short_build_info build/> successful ${var.buildShortStatusDescription}.
<@resp.buildTypeInvestigation buildType true/>
Build results: ${link.buildResultsLink}

${var.buildCompilationErrors}${var.buildFailedTestsErrors}${var.buildChanges}
<@common.footer/></#global>

<#global bodyHtml>
<div>
<div>
Build <b>${project.fullName?html} :: ${buildType.name?html}</b> <a <@common.short_build_info build/></a> successful
${var.buildShortStatusDescription}
</div>
<br>


I added this line:
<div> Location \\<server>\binaries\Integration\Agent\3.0\ <@common.short_build_info build/></div>


<div><@resp.buildTypeInvestigation buildType true/></div>

<@common.build_comment build/>
<br>
<@common.build_changes var.changesBean/>
<@common.compilation_errors var.compilationBean/>
<@common.test_errors var.failedTestsBean/>
<@common.footerHtml/>
</div>
</#global>
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

Hello ?

Any response on this?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Build number in URL

Hello,

This doesn't seem to be related to Advanced Installer or its CLI. Aside the e-mail template, you are using a build system I am not familiar with.

Try digging for specifications on this syntax:<@common.short_build_info build/> and see if you can control the return value.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

You're kidding me ... right?

I AM using AdvancedInstaller... it's THE build system that I have installed.

The email template is YOUR email template.

Please escalate this to one of your software engineers who actually knows what's going on.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Build number in URL

Hello,

We can understand your impatience, but we can assure you this ticket is not related with Advanced Installer.

We have further investigated this and we can confirm you the "build_successful.ftl" file is a TeamCity template for email notifications, but please note that neither Advanced Installer nor our TeamCity plugin is controlling the TeamCity notification templates. This functionality is TeamCity specific and solely controlled by the TeamCity build system.

We also double checked this info with our development team.

If you need to find more about how to customize notification templates in TeamCity, then please address your inquiry to the TeamCity support team. Thank you for your understanding.

If you have any questions related to Advanced Installer don't hesitate to ask us.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Build number in URL

Sorry.

I thought this was the correct forum
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Build number in URL

There is no problem.

If there is anything else we can assist you with just let us know.

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

Return to “Building Installers”