Skip to content

Instantly share code, notes, and snippets.

@matteoredaelli
Last active February 16, 2018 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save matteoredaelli/8d306d79e547f3fdfd5d1c467373f8e0 to your computer and use it in GitHub Desktop.
Save matteoredaelli/8d306d79e547f3fdfd5d1c467373f8e0 to your computer and use it in GitHub Desktop.
Jenkins pipeline for OBIEE deployments
pipeline {
agent any
stages {
stage('Export repository from Dev') {
steps {
node('ambra.redaelli.org') {
sh '/bin/hostname'
sh './export_repository.sh'
}
}
}
stage('Copy repository to Qua'){
steps {
node('ambra.redaelli.org') {
sh '/bin/hostname'
sh './copy_repository_to_qailty.sh'
}
}
}
stage('Backup repository Qua') {
steps {
node('ametista.redaelli.org') {
sh '/bin/hostname'
sh './export_repository.sh'
}
}
}
stage('Upload repository to Qua') {
steps {
input 'Do you approve deployment?'
node('ametista.redaelli.org') {
sh '/bin/hostname'
sh './import_repository.sh'
}
}
post {
always {
sh 'echo ok'
}
failure {
mail to: 'matteo.redaelli@redaelli.org', subject: 'The Pipeline failed :(', body: ''
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment