Skip to content

Commit

Permalink
disable deletion for now
Browse files Browse the repository at this point in the history
  • Loading branch information
shokakucarrier committed Mar 14, 2024
1 parent 33fa603 commit d106a42
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions pkg/buildtest/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,23 @@ func DoRun(originalIndy, targetIndy, indyProxyUrl, migrateTargetIndy, packageTyp
for _, down := range migrateArtifacts {
migratePath := setHostname(down[3], migrateTargetIndyHost)
fmt.Printf("[%s] Deleting %s\n", time.Now().Format(DATA_TIME), migratePath)
broken = !delRequest(migratePath)
//broken = !delRequest(migratePath)

if down[1] != packageType+":hosted:shared-imports" {
extra, _ := url.JoinPath("http://"+migrateTargetIndyHost, "/api/content", packageType, "/hosted/shared-imports", down[4])

Check failure on line 107 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.16.15)

undefined: url.JoinPath

Check failure on line 107 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.17.13)

undefined: url.JoinPath

Check failure on line 107 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.18.8)

undefined: url.JoinPath
fmt.Printf("[%s] Deleting %s\n", time.Now().Format(DATA_TIME), extra)
broken = !delRequest(extra)
//broken = !delRequest(extra)
}

if down[1] == "npm:remote:npmjs" || down[1] == "maven:remote:central" {
migratePath, _ := url.JoinPath("http://"+migrateTargetIndyHost, "/api/content", packageType, "/hosted/shared-imports", down[4])

Check failure on line 113 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.16.15)

undefined: url.JoinPath

Check failure on line 113 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.17.13)

undefined: url.JoinPath

Check failure on line 113 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.18.8)

undefined: url.JoinPath
fmt.Printf("[%s] Deleting %s\n", time.Now().Format(DATA_TIME), migratePath)
broken = !delRequest(migratePath)
//broken = !delRequest(migratePath)

} else if down[1] == "maven:remote:mrrc-ga-rh" {
} else if down[1] == "maven:remote:mrrc-ga-rh" || strings.HasPrefix(down[1], "maven:hosted:build-") {
migratePath, _ := url.JoinPath("http://"+migrateTargetIndyHost, "/api/content", packageType, "/hosted/pnc-builds", down[4])

Check failure on line 118 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.16.15)

undefined: url.JoinPath

Check failure on line 118 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.17.13)

undefined: url.JoinPath

Check failure on line 118 in pkg/buildtest/run.go

View workflow job for this annotation

GitHub Actions / build (1.18.8)

undefined: url.JoinPath
fmt.Printf("[%s] Deleting %s\n", time.Now().Format(DATA_TIME), migratePath)
broken = !delRequest(migratePath)

} else if strings.HasPrefix(down[1], "maven:hosted:build-") {
migratePath, _ := url.JoinPath("http://"+migrateTargetIndyHost, "/api/content", packageType, "/hosted/pnc-builds", down[4])
fmt.Printf("[%s] Deleting %s\n", time.Now().Format(DATA_TIME), migratePath)
broken = !delRequest(migratePath)
//broken = !delRequest(migratePath)

}
broken = !migrateFunc(down[0], down[2], migratePath)
Expand Down

0 comments on commit d106a42

Please sign in to comment.