File tree Expand file tree Collapse file tree 3 files changed +52
-2
lines changed Expand file tree Collapse file tree 3 files changed +52
-2
lines changed Original file line number Diff line number Diff line change 3333 - name : curl
3434 uses : enflo/curl-action@master
3535 with :
36- curl : --user circcicd :${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/v1.10.23-statediff-alpha-unstable /geth-linux-amd64
36+ curl : --user cerccicd :${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/${{ github.event.inputs.giteaPublishTag }} /geth-linux-amd64
Original file line number Diff line number Diff line change 1+ pipeline {
2+ agent any
3+
4+ stages {
5+ stage(' Build' ) {
6+ steps {
7+ script{
8+ docker. withRegistry(' https://git.vdb.to' ){
9+ echo ' Building geth image...'
10+ // def geth_image = docker.build("cerc-io/go-ethereum:jenkinscicd")
11+ echo ' built geth image'
12+ }
13+ }
14+ }
15+ }
16+ stage(' Test' ) {
17+ agent {
18+ docker {
19+ image ' cerc-io/foundation:jenkinscicd'
20+ // image 'cerc-io/foundation_alpine:jenkinscicd'
21+ }
22+ }
23+
24+ environment {
25+ GO111MODULE = " on"
26+ CGO_ENABLED = 1
27+ // GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
28+ // GOPATH = "/go"
29+ GOPATH = " /tmp/go"
30+ // GOMODCACHE = "/go/pkg/mod"
31+ GOCACHE = " ${ WORKSPACE} /.cache/go-build"
32+ GOENV = " ${ WORKSPACE} /.config/go/env"
33+ GOMODCACHE = " /tmp/go/pkg/mod"
34+ GOWORK = " "
35+ // GOFLAGS=""
36+
37+ }
38+ steps {
39+ echo ' Testing ...'
40+ // sh '/usr/local/go/bin/go test -p 1 -v ./...'
41+ sh ' make test'
42+ }
43+ }
44+ stage(' Packaging' ) {
45+ steps {
46+ echo ' Packaging ...'
47+ }
48+ }
49+ }
50+ }
Original file line number Diff line number Diff line change 5050 @echo " Import \" $( GOBIN) /Geth.framework\" to use the library."
5151
5252test : all
53- $(GORUN ) build/ci.go test
53+ $(GORUN ) build/ci.go test -v
5454
5555lint : # # Run linters.
5656 $(GORUN ) build/ci.go lint
You can’t perform that action at this time.
0 commit comments