forked from External/greenlight
Helper scripts (#298)
* Added helper scripts * Added commit tag to version tag to builds from master * Restored script for Travis * Restored script for Jenkins * Restored script for Jenkins * Restored script for Jenkins
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -61,7 +61,7 @@ volumes: [
|
||||
withCredentials([file(credentialsId: 'cloud-datastore-user-account-creds', variable: 'FILE'), string(credentialsId: 'DOCKER_USER', variable: 'DOCKER_USER'), string(credentialsId: 'DOCKER_PASSWORD', variable: 'DOCKER_PASSWORD')]) {
|
||||
sh "gcloud auth activate-service-account --key-file=$FILE"
|
||||
if (stageBuild) {
|
||||
sh "sed -i 's/VERSION =.*/VERSION = \"${gitBranch}\"/g' config/initializers/version.rb"
|
||||
sh "sed -i 's/VERSION =.*/VERSION = \"${gitBranch} (${gitCommit.substring(7)})\"/g' config/initializers/version.rb"
|
||||
sh "gcloud docker -- build -t ${imageTag} -t 'bigbluebutton/${appName}:master' . && gcloud docker -- push ${imageTag}"
|
||||
sh "docker login -u $DOCKER_USER -p $DOCKER_PASSWORD"
|
||||
sh "docker push 'bigbluebutton/${appName}:master'"
|
||||
@ -93,4 +93,4 @@ volumes: [
|
||||
slackSend (color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' message: ${e} (${env.BUILD_URL})")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user