2023-05-15 15:28:33 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('do nothing')
|
|
|
|
{
|
|
|
|
steps {
|
|
|
|
echo ("do nothing")
|
|
|
|
/*echo ("set up venv")
|
|
|
|
|
|
|
|
sh "python3 -m venv docker_ium"
|
|
|
|
sh "source docker_ium/bin/activate"
|
|
|
|
sh "pip3 install kaggle"
|
|
|
|
sh "pip3 install pandas"
|
|
|
|
sh "pip3 install -U scikit-learn"*/
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Run Script') {
|
|
|
|
steps {
|
|
|
|
//echo ("checkout: check out from version control")
|
|
|
|
//git "https://git.wmi.amu.edu.pl/s151636/ium_151636.git"
|
|
|
|
|
|
|
|
//echo ("sh: Shell Script")
|
|
|
|
//sh "python3 script2.py"
|
|
|
|
|
|
|
|
//echo ("copyArtifacts")
|
|
|
|
|
|
|
|
|
|
|
|
//echo("archiveArtifacts")
|
|
|
|
|
|
|
|
//echo ("run dockerfile")
|
|
|
|
//sh docker
|
|
|
|
|
|
|
|
|
|
|
|
echo("run data script")
|
|
|
|
//sh "source docker_ium/bin/activate"
|
|
|
|
sh "ls -a"
|
2023-06-06 21:29:10 +02:00
|
|
|
sh "chmod u+x script5_3.py"
|
2023-05-15 15:28:33 +02:00
|
|
|
//sh "pip3 show pandas"
|
2023-06-06 22:01:13 +02:00
|
|
|
//sh "python3 script5_3.py | tee output.txt | tar -czf output.tar.gz output.txt"
|
|
|
|
sh "python3 script5_3.py | tee output.txt"
|
2023-05-15 15:28:33 +02:00
|
|
|
}
|
|
|
|
}
|
2023-06-06 22:09:05 +02:00
|
|
|
stage('Archive Output') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'model.pth'
|
2023-06-06 22:10:45 +02:00
|
|
|
}
|
|
|
|
}
|
2023-05-15 15:28:33 +02:00
|
|
|
}
|
|
|
|
}
|