Created
May 1, 2015 00:33
-
-
Save marshyski/97a6db9c5840dbded0e0 to your computer and use it in GitHub Desktop.
Jenkins Build for Plural
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf $WORKSPACE/* | |
export GOPATH=$WORKSPACE/ | |
export PATH=$PATH:/usr/local/bin | |
go get github.com/spf13/viper | |
go get github.com/shirou/gopsutil | |
go get github.com/dustin/go-humanize | |
go get github.com/fsouza/go-dockerclient | |
go get github.com/drael/GOnetstat | |
cd src | |
git clone https://github.com/marshyski/plural.git | |
cd plural/plural && go build | |
rm -rf /opt/plural | |
mkdir -p /opt/plural/{bin,conf} | |
mv plural /opt/plural/bin | |
fpm -s dir -t rpm -n "plural" -v $BUILD_NUMBER --rpm-user root --rpm-group root --rpm-compression bzip2 /opt/plural | |
fpm -s dir -t deb -n "plural" -v $BUILD_NUMBER --deb-user root --deb-group root --deb-compression bzip2 /opt/plural |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment