diff --git a/cmd/drone-agent/agent.go b/cmd/drone-agent/agent.go index 96fd38472..50264f4f3 100644 --- a/cmd/drone-agent/agent.go +++ b/cmd/drone-agent/agent.go @@ -414,8 +414,7 @@ func (c *credentials) RequireTransportSecurity() bool { // extract repository name from the configuration func extractRepositoryName(config *backend.Config) string { - return config.Stages[0].Steps[0].Environment["DRONE_REPO_NAME"] + "/" + - config.Stages[0].Steps[0].Environment["DRONE_REPO_NAME"] + return config.Stages[0].Steps[0].Environment["DRONE_REPO"] } // extract build number from the configuration