func InitBintrayTests() { if !*tests.TestBintray { return } initBintrayCredentials() deleteBintrayRepo() createBintrayRepo() bintrayCli = tests.NewJfrogCli(main, "jfrog bt", "--user="******" --key="+bintrayConfig.Key) }
func InitArtifactoryTests() { if !*tests.TestArtifactory { return } artifactoryDetails = new(config.ArtifactoryDetails) cred := "--url=" + *tests.RtUrl artifactoryDetails.Url = *tests.RtUrl if *tests.RtApiKey != "" { cred += " --apikey=" + *tests.RtApiKey artifactoryDetails.ApiKey = *tests.RtApiKey } else { cred += " --user="******" --password="******"jfrog rt", cred) createReposIfNeeded() cleanArtifactoryTest() }