Skip to content

Commit

Permalink
fix bp
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Jan 31, 2024
1 parent 07e7f31 commit 6898950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion artifactory/services/promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package services
import (
"encoding/json"
"net/http"
"net/url"
"path"

"github.com/jfrog/jfrog-client-go/artifactory/services/utils"
Expand Down Expand Up @@ -35,7 +36,7 @@ func (ps *PromoteService) BuildPromote(promotionParams PromotionParams) error {
log.Info(message)

promoteUrl := ps.ArtDetails.GetUrl()
restApi := path.Join("api/build/promote/", promotionParams.GetBuildName(), promotionParams.GetBuildNumber())
restApi := path.Join("api/build/promote/", url.PathEscape(promotionParams.GetBuildName()), url.PathEscape(promotionParams.GetBuildNumber()))

queryParams := make(map[string]string)
if promotionParams.ProjectKey != "" {
Expand Down

0 comments on commit 6898950

Please sign in to comment.