use webapp build from cache when possible (#7646)

This commit is contained in:
Chris
2017-10-18 14:40:17 -07:00
committed by GitHub
parent 0a508133d5
commit 34a87fa8f4

2
build/Jenkinsfile vendored
View File

@@ -136,7 +136,7 @@ podTemplate(label: 'jenkins-slave',
sh 'cd /go/src/github.com/mattermost/mattermost-server && make build BUILD_NUMBER=$BUILD_NUMBER' sh 'cd /go/src/github.com/mattermost/mattermost-server && make build BUILD_NUMBER=$BUILD_NUMBER'
} }
container('mattermost-node') { container('mattermost-node') {
sh 'cd mattermost-webapp && make build BUILD_NUMBER=$BUILD_NUMBER' sh 'cd mattermost-webapp && curl -f -o ./dist.tar.gz https://releases.mattermost.com/mattermost-webapp/commit/`git rev-parse HEAD`/mattermost-webapp.tar.gz && mkdir ./dist && tar -xvf ./dist.tar.gz -C ./dist --strip-components=1 || make build'
} }
container('golang') { container('golang') {
sh 'cd /go/src/github.com/mattermost/mattermost-server && make package BUILD_NUMBER=$BUILD_NUMBER' sh 'cd /go/src/github.com/mattermost/mattermost-server && make package BUILD_NUMBER=$BUILD_NUMBER'