update to add github trigger

This commit is contained in:
bruckwubete
2018-08-21 15:55:50 -04:00
parent 810b62f66e
commit 317e6e8cc5
5 changed files with 51 additions and 26 deletions

8
Jenkinsfile vendored
View File

@ -11,6 +11,12 @@ if (env.TAG_NAME && env.TAG_NAME.contains("release")) {
kubecSecretsId = 'gl-launcher-staging-secrets'
}
properties([
pipelineTriggers([
githubPush()
])
])
podTemplate(label: label, cloud: "${kubeCloud}", containers: [
containerTemplate(name: 'ruby', image: "ruby:2.5.1", command: 'cat', ttyEnabled: true),
containerTemplate(name: 'gcloud', image: "gcr.io/ci-cd-for-bn/gcloud-docker", command: 'cat', ttyEnabled: true),
@ -31,7 +37,7 @@ volumes: [
stage('Test') {
container('ruby') {
sh "bundle install && bundle exec rubocop && bundle exec rspec"
sh "bundle install --without development production && bundle exec rubocop && bundle exec rspec"
}
}