From c033f954cfc32f63e49ab3888213df20bf7c3841 Mon Sep 17 00:00:00 2001 From: Yevhenii Poliakov Date: Fri, 12 May 2023 20:24:27 +0200 Subject: [PATCH] fix jenkinsfile for 5.1 add jenkinsfile for 5.2 --- Jenkinsfile | 2 +- Jenkinsfile_dh | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile_dh diff --git a/Jenkinsfile b/Jenkinsfile index 5710d99..49d4273 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,7 @@ pipeline { echo("run data script") sh "source docker_ium/bin/activate" - sh "python3 script2" + sh "python3 script2.py" sh "deactivate" } } diff --git a/Jenkinsfile_dh b/Jenkinsfile_dh new file mode 100644 index 0000000..dc666c1 --- /dev/null +++ b/Jenkinsfile_dh @@ -0,0 +1,36 @@ +pipeline { + agent { + dockerfile true + } + + stages { + + 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 "apt install python3.10-venv -y" + sh "python3 -m venv docker_ium" + sh "source docker_ium/bin/activate" + sh "pip3 install pandas" + sh "pip3 install -U scikit-learn" + sh "pip install tensorflow==2.12.*" + sh "python3 script2" + sh "deactivate" + } + } + } +}