From 27a12415e685da2602f9426537c96ee2930859df Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 1 Jun 2016 08:55:15 +0200 Subject: [PATCH] update trigger --- ts/npmci.trigger.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ts/npmci.trigger.ts b/ts/npmci.trigger.ts index d5ceefe..8aa3d15 100644 --- a/ts/npmci.trigger.ts +++ b/ts/npmci.trigger.ts @@ -11,10 +11,10 @@ export let trigger = function(){ let iteratorString = i.toString(); if(process.env["TRIGGER" + iteratorString]){ let triggerRegexResultArray = triggerRegex.exec(process.env["TRIGGER" + iteratorString]); - let regexDomain = triggerRegexResultArray[0]; - let regexProjectId = triggerRegexResultArray[1]; - let regexProjectTriggerToken = triggerRegexResultArray[2]; - let regexRefName = triggerRegexResultArray[3]; + let regexDomain = triggerRegexResultArray[1]; + let regexProjectId = triggerRegexResultArray[2]; + let regexProjectTriggerToken = triggerRegexResultArray[3]; + let regexRefName = triggerRegexResultArray[4]; plugins.beautylog.log("triggering build for ref " + regexRefName); plugins.beautylog.log("Found TRIGGER" + iteratorString); plugins.request.post("https://gitlab.com/api/v3/projects/" + regexProjectId + "/trigger/builds", {form:{token:regexProjectTriggerToken,ref:regexRefName}});