cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a URL using Trigger?

Highlighted
Newbie

How to open a URL using Trigger?

Hi,

Currently I've a requriement, whenever a defect or item is created I need to open one url via trigger. Let me know what is the code to open an URL via trigger?

Thanks & Regards,

shankar

9 REPLIES 9
Highlighted

Re: How to open a URL using Trigger?

Do you want to open up the Integrity web client to a specific item/object or do you want to open a browser to an external website?

Highlighted

Re: How to open a URL using Trigger?

Hi,

I want to open a external website(JIRA URL)

Highlighted

Re: How to open a URL using Trigger?

Hi,

Anyone know how to open a URL from a remote machine?

Regards,

Shankar

Highlighted

Re: How to open a URL using Trigger?

Is it a fixed URL or a dynamic URL, depending on infos from out of the item itself?

Greetings,

Klaus

Highlighted

Re: How to open a URL using Trigger?

Hi Shankar,

I'm looking for a similar solution in a different use-case.

I would like to trigger my build server (Jenkins) when checkpoint is created in Integrity (and the project meed some special conditions).

So basically I need a way to KICK-OFF the "run build URL" on my Jenkins from inside my Integrity java script source trigger.

Of course the trigger must be non blocking.

Did you find a solution so far?

Regards Matthias

Highlighted

Re: How to open a URL using Trigger?

Hi Matthias,

I can provide a solution for your use case (we have the same use case):

var eb = bsf.lookupBean("siEnvironmentBean");

var pb = eb.createProcessBuilderBean();

pb.setCommand("wget -q --spider --no-check-certificate --http-user=xxx --http-password=yyy https://zzz);

pb.start();

Regards, Ingo

Highlighted

Re: How to open a URL using Trigger?

Thanx Ingo, you just saved my day

Highlighted

Re: How to open a URL using Trigger?

Shankar,

What was it about this answer that did not resolve your request? Maybe we can tailor it to meet your needs?

Regards,
Kael


Kind Regards,
Kael Lizak

Senior Technical Support Engineer
PTC Integrity Lifecycle Manager
Highlighted

Re: How to open a URL using Trigger?

Here's an alternative for those users on Windows Servers that do/can not want to use "wget".

It's the same command in PowerShell and works just great for us:

var eb = bsf.lookupBean("siEnvironmentBean");

var pb = eb.createProcessBuilderBean();

pb.setCommand("powershell.exe -command \"$client = new-object System.Net.WebClient;$client.Credentials = New-Object System.Net.Networkcredential('xxx','yyy');$client.DownloadFile('"https://zzz/"' , 'c:\\temp\down.html' ); \" ");

pb.start();

HTH Matthias

Announcements