diff --git a/server/api/pipeline.go b/server/api/pipeline.go index 65bf268ba..6ea6789b5 100644 --- a/server/api/pipeline.go +++ b/server/api/pipeline.go @@ -100,7 +100,7 @@ func createTmpPipeline(event model.WebhookEvent, commit *model.Commit, user *mod Avatar: user.Avatar, Message: "MANUAL PIPELINE @ " + opts.Branch, - Ref: opts.Branch, + Ref: "refs/heads/" + opts.Branch, AdditionalVariables: opts.Variables, Author: user.Login,