diff --git a/server/hook.go b/server/hook.go index b07c50d45..cfcdde761 100644 --- a/server/hook.go +++ b/server/hook.go @@ -530,7 +530,7 @@ func (b *builder) Build() ([]*buildItem, error) { ), compiler.WithEnviron(proc.Environ), compiler.WithProxy(), - compiler.WithWorkspaceFromURL("/drone", b.Curr.Link), + compiler.WithWorkspaceFromURL("/drone", b.Repo.Link), compiler.WithMetadata(metadata), ).Compile(parsed)