ium_151636/Jenkinsfile

60 lines
1.4 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 22:10:24 +02:00
stage('do nothing')
2023-05-12 21:53:45 +02:00
{
steps {
2023-05-14 13:15:29 +02:00
echo ("do nothing")
2023-05-12 22:08:22 +02:00
/*echo ("set up venv")
2023-05-12 21:53:45 +02:00
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"
2023-05-12 22:08:22 +02:00
sh "pip3 install -U scikit-learn"*/
2023-05-12 22:02:43 +02:00
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-15 19:23:55 +02:00
sh "chmod u+x better_preprocess.py"
2023-05-14 13:22:51 +02:00
//sh "pip3 show pandas"
2023-05-14 20:16:41 +02:00
//sh "cat script5.py"
2023-05-15 19:23:55 +02:00
sh "python3 better_preprocess.py"
2023-05-12 20:32:28 +02:00
2023-05-11 20:49:42 +02:00
}
}
2023-05-16 01:32:28 +02:00
}
post {
success {
script {
build job: 's151636-training', wait: false
}
2023-05-16 01:24:39 +02:00
}
2023-05-15 19:23:55 +02:00
}
}
2023-05-16 01:24:39 +02:00