General: Fixed Distrobuilder build script
This commit is contained in:
Vendored
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
{
|
{
|
||||||
"label": "SetupImgBuilder",
|
"label": "SetupImgBuilder",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC",
|
"command": "export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp; mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ pipeline {
|
|||||||
then
|
then
|
||||||
sed -i '/mirrorlist=/c\baseurl=http://192.168.200.20/centos/\$releasever/BaseOS/x86_64/os/' $WORKSPACE/sources/centos-http.go
|
sed -i '/mirrorlist=/c\baseurl=http://192.168.200.20/centos/\$releasever/BaseOS/x86_64/os/' $WORKSPACE/sources/centos-http.go
|
||||||
fi
|
fi
|
||||||
|
export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp
|
||||||
gofmt -s -w .
|
gofmt -s -w .
|
||||||
go build -o build -v ./...
|
go build -o build -v ./...
|
||||||
go clean
|
go clean
|
||||||
|
|||||||
Reference in New Issue
Block a user