问题描述
我正尝试按以下方式下载要在Jenkins管道中运行的依赖项
stages {
stage('terraform build') {
steps {
withEnv(["goproxy=https://${env.ARTIFACTORY_USER}:${env.ARTIFACTORY_PASSWORD}@.jfrog.io//api/go/goproxy"]) {
sh "go get testing"
sh "go get github.com/gruntwork-io/terratest/modules/terraform"
sh "go get github.com/stretchr/testify/assert"
}
withAWS(role: "arn:aws:iam:::role/-jenkins") {
sh "gradle ${GRADLE_ARGS}"
}
}
}
我看到以下错误,这使我认为它无法访问github?
2 0:23:29 unrecognized import path "gopkg.in/yaml.v3": https fetch: Get "https://gopkg.in/yaml.v3?go-get=1": net/http: TLS handshake timeout
我是否以正确的方式使用goproxy
?
转到版本
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)