Answer the question
In order to leave comments, you need to log in
How to connect dependencies from Vendor during assembly?
Hello.
Wrote code in GOLang.
I tested it on my developer computer, it starts up and works.
Uploaded the source to git.
Now I want to make a CI_CD (Gitlab/Jenkins/Artifactory) with uploading to the desired server.
The project has a number of dependencies
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/log"
"github.com/prometheus/common/version"
"gopkg.in/alecthomas/kingpin.v2"
which you need to connect before starting the build
How to correctly write these dependencies in the jenkinsfile
stage ('Dependencies') {
echo 'Pulling Dependencies'
sh """
go version
"""
// go get -u github.com/prometheus/client_golang/prometheus
}
stage ('Build') {
// sh "go build -o haproxy_node_exporter gitlabserver/examples/haproxy_node_exporter"
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question