示例#1
0
func InitBintrayTests() {
	if !*tests.TestBintray {
		return
	}
	initBintrayCredentials()
	deleteBintrayRepo()
	createBintrayRepo()
	bintrayCli = tests.NewJfrogCli(main, "jfrog bt", "--user="******" --key="+bintrayConfig.Key)
}
示例#2
0
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()
}