pipeline { agent {label 'master'} stages { stage('Initial setup...') { steps { echo 'Initial setup...' // echo 'Create or update the virtual Python environment' // sh '/bin/bash ./src/CI/CI.bash -i ci_venv' } } stage('Building the package...') { steps { sh '/bin/bash -c make' // sh '/bin/bash ./src/CI/CI.bash -p ci_venv' } } stage('Testing the package...') { steps { sh './hello' // sh 'cp ~/.bashrc ~/.bashrc.bak' // sh './install_resources/packages/$(cat VERSION).setup --accept -- -y' // sh '$HOME/.local/bin/msspec -f $HOME/.local/share/$(cat VERSION)' // sh '$HOME/.local/bin/msspec -t' // sh 'yes 1|$HOME/.local/bin/msspec -u' // sh 'mv ~/.bashrc.bak ~/.bashrc' } } stage('Building HTML documentation...') { steps { echo 'Building HTML documentation...' // sh '/bin/bash ./src/CI/CI.bash -d ci_venv' } } stage('Releasing package...') { steps { echo 'Releasing package...' // sh 'rm -rf $HOME/www/*' // sh 'cp -a ./src/doc/build/html/* $HOME/www/' } } stage('Cleaning up...') { steps { echo 'Cleaning artifacts...' sh '/bin/bash -c "make clean"' // sh 'rm -rf ./install_resources' // sh 'cd ./src/doc && make clean' } } } }