Skip to content

Instantly share code, notes, and snippets.

@marshyski
Created May 1, 2015 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshyski/97a6db9c5840dbded0e0 to your computer and use it in GitHub Desktop.
Save marshyski/97a6db9c5840dbded0e0 to your computer and use it in GitHub Desktop.
Jenkins Build for Plural
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