From 3277c39c04a9e7881de3b452b22e17ca85cb0848 Mon Sep 17 00:00:00 2001 From: eugene Date: Tue, 6 Jun 2023 22:29:52 +0200 Subject: [PATCH] upd j --- Jenkinsfile-lab6_1 | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Jenkinsfile-lab6_1 diff --git a/Jenkinsfile-lab6_1 b/Jenkinsfile-lab6_1 new file mode 100644 index 0000000..43cbda0 --- /dev/null +++ b/Jenkinsfile-lab6_1 @@ -0,0 +1,57 @@ +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('Load Artifact') { + steps { + script { + copyArtifacts fingerprintArtifacts: true, projectName: 's151636-training/master/', selector: buildParameter("BUILD_SELECTOR") + } + } + } + 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 script5_4.py" + //sh "pip3 show pandas" + //sh "python3 script5_3.py | tee output.txt | tar -czf output.tar.gz output.txt" + sh "python3 script5_4.py | tee output.txt" + } + } + + } +}