From 17e0b0aef116d85093d73c711b2ecb1f635f6d39 Mon Sep 17 00:00:00 2001 From: Jens Harbott Date: Tue, 24 Oct 2017 10:21:04 +0000 Subject: [PATCH] Add match for "-" in pipeline name We have pipelines like e.g. "check-tripleo" that would like to be matched in the Gerrit UI. Change-Id: Id0613813945590e399c223aae7bf2e69b9cfd222 --- modules/openstack_project/files/gerrit/hideci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/gerrit/hideci.js b/modules/openstack_project/files/gerrit/hideci.js index 1306fa8e0e..e9c9bf2058 100644 --- a/modules/openstack_project/files/gerrit/hideci.js +++ b/modules/openstack_project/files/gerrit/hideci.js @@ -26,7 +26,7 @@ var trustedCIRegex = /^(OpenStack CI|Jenkins|Zuul)$/; // this regex matches the name+pipeline that we want at the top of the CI list var firstPartyCI = /^(Jenkins|Zuul)/; // this regex matches the pipeline markup -var pipelineNameRegex = /Build \w+ \((\w+) pipeline\)/; +var pipelineNameRegex = /Build \w+ \(([-\w]+) pipeline\)/; // The url to full status information on running jobs var zuulStatusURL = 'http://status.openstack.org/zuul'; // The json URL to check for running jobs