Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Cherry-pick changes from #1982 to fix builds.
Browse files Browse the repository at this point in the history
Otherwise, builds are subject to environment changes regarding the tele
login state.
  • Loading branch information
a-palchikov committed Aug 15, 2020
1 parent 43ad381 commit 32408d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions Jenkinsfile
Expand Up @@ -59,13 +59,9 @@ timestamps {
}
stage('build-gravity') {
withCredentials([
[$class: 'SSHUserPrivateKeyBinding', credentialsId: '08267d86-0b3a-4101-841e-0036bf780b11', keyFileVariable: 'GITHUB_SSH_KEY'],
[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-aws-s3',
usernameVariable: 'AWS_ACCESS_KEY_ID',
passwordVariable: 'AWS_SECRET_ACCESS_KEY',
],
sshUserPrivateKey(credentialsId: '08267d86-0b3a-4101-841e-0036bf780b11', keyFileVariable: 'GITHUB_SSH_KEY'),
usernamePassword(credentialsId: 'jenkins-aws-s3', usernameVariable: 'AWS_ACCESS_KEY_ID', passwordVariable: 'AWS_SECRET_ACCESS_KEY'),
string(credentialsId:'GET_GRAVITATIONAL_IO_APIKEY', variable: 'GET_GRAVITATIONAL_IO_APIKEY'),
]) {
sh 'make -C e production telekube-intermediate-upgrade opscenter'
}
Expand All @@ -77,17 +73,18 @@ timestamps {
parallel (
build : {
withCredentials([
[$class: 'SSHUserPrivateKeyBinding', credentialsId: '08267d86-0b3a-4101-841e-0036bf780b11', keyFileVariable: 'GITHUB_SSH_KEY']]) {
sshUserPrivateKey(credentialsId: '08267d86-0b3a-4101-841e-0036bf780b11', keyFileVariable: 'GITHUB_SSH_KEY')
]) {
sh 'make test && make -C e test'
}
},
robotest : {
if (env.RUN_ROBOTEST == 'run') {
withCredentials([
[$class: 'StringBinding', credentialsId: 'GET_GRAVITATIONAL_IO_APIKEY', variable: 'GET_GRAVITATIONAL_IO_APIKEY'],
[$class: 'FileBinding', credentialsId:'ROBOTEST_LOG_GOOGLE_APPLICATION_CREDENTIALS', variable: 'GOOGLE_APPLICATION_CREDENTIALS'],
[$class: 'FileBinding', credentialsId:'OPS_SSH_KEY', variable: 'SSH_KEY'],
[$class: 'FileBinding', credentialsId:'OPS_SSH_PUB', variable: 'SSH_PUB'],
string(credentialsId: 'GET_GRAVITATIONAL_IO_APIKEY', variable: 'GET_GRAVITATIONAL_IO_APIKEY'),
file(credentialsId:'ROBOTEST_LOG_GOOGLE_APPLICATION_CREDENTIALS', variable: 'GOOGLE_APPLICATION_CREDENTIALS'),
file(credentialsId:'OPS_SSH_KEY', variable: 'SSH_KEY'),
file(credentialsId:'OPS_SSH_PUB', variable: 'SSH_PUB'),
]) {
sh 'make -C e robotest-run-suite'
}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -526,7 +526,7 @@ telekube: $(GRAVITY_BUILDDIR)/telekube.tar

.PHONY: telekube-intermediate-upgrade
telekube-intermediate-upgrade: GRAVITY=$(GRAVITY_OUT) --state-dir=$(PACKAGES_DIR)
telekube-intermediate-upgrade: GRAVITY_INSTALLER_OPTIONS=--upgrade-via=$(GRAVITY_INTERMEDIATE_RELEASE)
telekube-intermediate-upgrade: GRAVITY_INSTALLER_OPTIONS:=$(GRAVITY_INSTALLER_OPTIONS) --upgrade-via=$(GRAVITY_INTERMEDIATE_RELEASE)
telekube-intermediate-upgrade: $(GRAVITY_BUILDDIR)/telekube.tar

$(GRAVITY_BUILDDIR)/telekube.tar: packages
Expand Down
2 changes: 1 addition & 1 deletion e
Submodule e updated from 4599aa to e8b2e2

0 comments on commit 32408d0

Please sign in to comment.