ium_151636/Jenkinsfile
2023-05-12 22:08:22 +02:00

49 lines
1.2 KiB
Groovy

pipeline {
agent {
dockerfile true
}
stages {
stage('Set up venv')
{
steps {
/*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"
sh "chmod u+x script2.py"
sh "pip show pandas"
sh "python3 script2.py"
}
}
}
}