excercise 3.5 test

This commit is contained in:
s470618 2023-03-23 14:37:46 +01:00
parent 5dcddf659e
commit fa56590025
2 changed files with 6 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -1 +1 @@
pipeline { agent any stages { stage('Stage 1') { steps { echo 'Hello world!' } } } }
pipeline { stage('Preparation') { pipeline { agent any pipeline { stages { pipeline { stage('Stage 1') { pipeline { steps { pipeline { echo 'Hello world!' pipeline { } pipeline { } pipeline { password( defaultValue: '', description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', name: 'KAGGLE_KEY' ) ]) ]) } stage('Build') { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { checkout https://git.wmi.amu.edu.pl/s470618/ium_470618.git sh script.sh } } stage('artifacts') { steps { echo 'saving artifacts' archiveArtifacts 'output.txt' } } }

5
script.sh Executable file
View File

@ -0,0 +1,5 @@
kaggle competitions download -c titanic
unzip titanic.zip
wc -l train.csv
head -500 train.csv | shuf > output.txt
echo 'script done'