From 40b97a1a4fec52dd4884dad891aa07c9c92cab15 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 9 Apr 2019 11:22:54 +0200 Subject: [PATCH] add check i18n en.json to the pipeline (#10557) --- build/Jenkinsfile.pr | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/build/Jenkinsfile.pr b/build/Jenkinsfile.pr index 2b84380769..8f80e83f18 100644 --- a/build/Jenkinsfile.pr +++ b/build/Jenkinsfile.pr @@ -71,6 +71,25 @@ pipeline { } } + stage('Check i18n') { + environment { + GOPATH = "/go" + } + + steps { + withDockerContainer(args: '-u root --privileged -v ${WORKSPACE}/src:/go/src/', image: 'mattermost/mattermost-build-server:feb-28-2019') { + ansiColor('xterm') { + sh """ + cd /go/src/github.com/mattermost/mattermost-server + cp i18n/en.json /tmp/en.json + make i18n-extract + diff /tmp/en.json i18n/en.json + """ + } + } + } + } + stage('Build') { environment { GOPATH = "/go"