added basic jenkins file to automate the build of hello
This commit is contained in:
parent
6e903069ec
commit
5166363522
|
@ -0,0 +1,50 @@
|
|||
pipeline {
|
||||
agent {label 'msspec_agent_amd64'}
|
||||
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 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 make clean'
|
||||
#sh 'rm -rf ./install_resources'
|
||||
#sh 'cd ./src/doc && make clean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue