From eea5b7ba315b9c00f92a1c180efb03163f1fb26c Mon Sep 17 00:00:00 2001 From: Joshua Wilson Date: Sat, 23 Sep 2017 08:24:36 -0400 Subject: [PATCH] fix(build): update Jenkins to get the right code from the repo and add a build check to the PR step (#67) --- Jenkinsfile | 2 +- release.groovy | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ee17a46..5499769 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ def org = 'fabric8-ui' def repo = 'ngx-login-client' fabric8UINode{ ws { - git "https://github.com/${org}/${repo}.git" + checkout scm readTrusted 'release.groovy' sh "git remote set-url origin git@github.com:${org}/${repo}.git" def pipeline = load 'release.groovy' diff --git a/release.groovy b/release.groovy index a41bc6b..fcabeba 100644 --- a/release.groovy +++ b/release.groovy @@ -2,6 +2,7 @@ def ci (){ stage('build'){ sh 'npm install' + sh 'npm run build' } stage('unit test'){ sh './run_unit_tests.sh'