about summary refs log tree commit diff
path: root/ops/besadii/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'ops/besadii/main.go')
-rw-r--r--ops/besadii/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ops/besadii/main.go b/ops/besadii/main.go
index dd009e6babeb..e051bb367e34 100644
--- a/ops/besadii/main.go
+++ b/ops/besadii/main.go
@@ -28,6 +28,7 @@ import (
 	"path"
 	"regexp"
 	"strconv"
+	"strings"
 )
 
 // Regular expression to extract change ID out of a URL
@@ -202,9 +203,12 @@ func triggerBuild(cfg *config, log *syslog.Writer, trigger *buildTrigger) error
 		headBuild = false
 	}
 
+    // The branch doesn't have to be a real ref (it's just used to group builds), so make it the identifier for the CL
+	branch := fmt.Sprintf("cl/%v", strings.Split(trigger.ref, "/")[3])
+
 	build := Build{
 		Commit: trigger.commit,
-		Branch: trigger.ref,
+		Branch: branch,
 		Env:    env,
 		Author: Author{
 			Name:  trigger.author,