I have set a rule in the outlook that
apply this rule after arrives
with "xyz" in the subject
and move it to the "buildme"
folder "buildme" was created as a data file at
C:\Users\myid\AppData\Local\Microsoft\Outlook\builme.pst
In Jenkin under the project, I created build trigger as below:
[FSTrigger] - Monitor files
File Path: C:\Users\myid\AppData\Local\Microsoft\Outlook\builme.pst
Schedule: 55 * * * 1-5
I sent an email with "xyz" in the subject line. the email then was moved to the "buildme" folder, thus the file C:\Users\myid\AppData\Local\Microsoft\Outlook\builme.pst gets update at, say at "3/24/2016 11:24 AM".
At 11:55 AM, the build was correctly triggered.
However, at 12:55 PM, another build was triggered again, unexpectedly, although there was no new email sent. this goes on for every hour.
What I did wrong?
In the VBA script, add the code:`code` Set objHTTP = CreateObject("Microsoft.XMLHTTP") URL = "http://56.xxx.xxx.xxx:8080/job/testenv/build?token=go" objHTTP.Open "POST", URL, False objHTTP.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" objHTTP.Send (""). After execution of this code, no build was triggered. – Heinz Mar 28 '16 at 16:38