ium_151636/Jenkinsfile

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-05-11 20:49:42 +02:00
pipeline {
2023-05-11 20:55:07 +02:00
agent {
2023-05-11 22:48:45 +02:00
dockerfile true
2023-05-11 20:55:07 +02:00
}
2023-05-11 20:49:42 +02:00
stages {
2023-05-12 21:53:45 +02:00
stage('Set up venv')
{
steps {
echo ("set up venv")
2023-05-12 22:02:43 +02:00
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"
2023-05-12 21:53:45 +02:00
}
}
2023-05-11 22:48:45 +02:00
2023-05-11 20:55:07 +02:00
stage('Run Script') {
2023-05-11 20:49:42 +02:00
steps {
2023-05-12 15:40:02 +02:00
//echo ("checkout: check out from version control")
//git "https://git.wmi.amu.edu.pl/s151636/ium_151636.git"
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo ("sh: Shell Script")
//sh "python3 script2.py"
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo ("copyArtifacts")
2023-05-11 20:49:42 +02:00
2023-05-12 15:40:02 +02:00
//echo("archiveArtifacts")
2023-05-12 15:51:03 +02:00
2023-05-12 20:14:49 +02:00
//echo ("run dockerfile")
2023-05-12 15:51:03 +02:00
//sh docker
2023-05-12 20:14:49 +02:00
2023-05-12 21:53:45 +02:00
2023-05-12 20:14:49 +02:00
echo("run data script")
2023-05-12 20:41:31 +02:00
//sh "source docker_ium/bin/activate"
2023-05-12 20:37:17 +02:00
sh "ls -a"
2023-05-12 20:57:30 +02:00
sh "chmod u+x script2.py"
2023-05-12 21:45:53 +02:00
sh "pip show pandas"
2023-05-12 20:47:30 +02:00
sh "python3 script2.py"
2023-05-12 20:32:28 +02:00
2023-05-11 20:49:42 +02:00
}
}
}
}