Giter VIP home page Giter VIP logo

k8scicd's People

Contributors

abohmeed avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

k8scicd's Issues

Returned a non zero code. go build command

Hey, I followed the article you published on https://www.magalix.com/blog/create-a-ci/cd-pipeline-with-kubernetes-and-jenkins about Jenkins, Golang, etc. When I run the pipeline I got the following error at the last stage which is release. Could not find any solution or potential solution. Could you elaborate on it? Any idea how to fix this?

+ docker build -t barisertas/jenkins_go:27 .
Sending build context to Docker daemon  197.6kB

Step 1/9 : FROM golang:alpine AS build-env
alpine: Pulling from library/golang
59bf1c3509f3: Pulling fs layer
666ba61612fd: Pulling fs layer
8ed8ca486205: Pulling fs layer
1ff5b6d8b8c6: Pulling fs layer
40fcfd711f8d: Pulling fs layer
1ff5b6d8b8c6: Waiting
40fcfd711f8d: Waiting
8ed8ca486205: Verifying Checksum
8ed8ca486205: Download complete
666ba61612fd: Verifying Checksum
666ba61612fd: Download complete
59bf1c3509f3: Verifying Checksum
59bf1c3509f3: Download complete
40fcfd711f8d: Verifying Checksum
40fcfd711f8d: Download complete
59bf1c3509f3: Pull complete
666ba61612fd: Pull complete
8ed8ca486205: Pull complete
1ff5b6d8b8c6: Verifying Checksum
1ff5b6d8b8c6: Download complete
1ff5b6d8b8c6: Pull complete
40fcfd711f8d: Pull complete
Digest: sha256:4918412049183afe42f1ecaf8f5c2a88917c2eab153ce5ecf4bf2d55c1507b74
Status: Downloaded newer image for golang:alpine
 ---> d8bf44a3f6b4
Step 2/9 : RUN mkdir /go/src/app && apk update && apk add git && go mod init github.com/bariis/jenkins_go
 ---> Running in 58cce0639758
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
v3.15.0-83-gd925f25ff4 [https://dl-cdn.alpinelinux.org/alpine/v3.15/main]
v3.15.0-84-g08044d8080 [https://dl-cdn.alpinelinux.org/alpine/v3.15/community]
OK: 15832 distinct packages available
(1/6) Installing brotli-libs (1.0.9-r5)
(2/6) Installing nghttp2-libs (1.46.0-r0)
(3/6) Installing libcurl (7.80.0-r0)
(4/6) Installing expat (2.4.1-r0)
(5/6) Installing pcre2 (10.39-r0)
(6/6) Installing git (2.34.1-r0)
Executing busybox-1.34.1-r3.trigger
OK: 19 MiB in 21 packages
�[91mgo: creating new go.mod: module github.com/bariis/jenkins_go
�[0m�[91mgo: to add module requirements and sums:
	go mod tidy
�[0mRemoving intermediate container 58cce0639758
 ---> d98354ffb4f1
Step 3/9 : ADD main.go /go/src/app/
 ---> 4e449f60216a
Step 4/9 : WORKDIR /go/src/app
 ---> Running in bcdbaf678138
Removing intermediate container bcdbaf678138
 ---> ae5dbcd75c48
Step 5/9 : RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app .
 ---> Running in fc69bcb90b53
�[91m$GOPATH/go.mod exists but should not
�[0mThe command '/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o app .' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.