Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.