2019-03-07 10:56:01 +01:00
pipeline {
2019-03-21 15:44:17 +01:00
agent {label 'physix_agent'}
2019-10-04 18:48:35 +02:00
environment {
// GRAFFY_OWNCLOUD_JENKINS_PWD's value has been obtained from https://cloud.ipr.univ-rennes1.fr as an app password and is defined in gitlab as a CI secret variable,
// then this app password has been declared to jenkins's credentials as a secret text with the name graffy-cloudipr-for-jenkinsipr
GRAFFY_OWNCLOUD_JENKINS_PWD = credentials('graffy-cloudipr-for-jenkinsipr')
}
2019-03-07 10:56:01 +01:00
stages {
stage('Initial setup...') {
steps {
echo 'Initial setup...'
2019-10-01 12:45:22 +02:00
// erase old builds if anything is left
sh './scripts/cleanup.bash'
2019-07-17 16:56:05 +02:00
sh './scripts/install_fiji.bash'
2019-10-04 11:47:34 +02:00
sh 'make FIJI_ROOT_PATH=$(pwd)/Fiji.app install'
2019-03-07 10:56:01 +01:00
}
}
stage('Testing the package...') {
steps {
2019-10-04 11:47:34 +02:00
sh 'make FIJI_ROOT_PATH=$(pwd)/Fiji.app RAW_IMAGES_ROOT_PATH=/opt/ipr/cluster/work.global/graffy/jenkins-store/lipase/raw-images test'
2019-03-07 10:56:01 +01:00
}
}
2019-07-17 16:56:05 +02:00
// stage('Building HTML documentation...') {
// steps {
// echo 'Building HTML documentation...'
// // sh '/bin/bash ./src/CI/CI.bash -d ci_venv'
// }
// }
2019-10-04 18:48:35 +02:00
stage('Releasing package...') {
steps {
echo 'Releasing package...'
sh './scripts/release_lipase_package.bash'
}
}
2019-03-07 10:56:01 +01:00
stage('Cleaning up...') {
steps {
echo 'Cleaning artifacts...'
2019-10-01 12:45:22 +02:00
sh './scripts/cleanup.bash'
2019-03-07 11:33:59 +01:00
// sh 'rm -rf ./install_resources'
// sh 'cd ./src/doc && make clean'
2019-03-07 10:56:01 +01:00
}
}
}
}