Last active
February 16, 2018 10:01
-
-
Save matteoredaelli/8d306d79e547f3fdfd5d1c467373f8e0 to your computer and use it in GitHub Desktop.
Jenkins pipeline for OBIEE deployments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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