From 632d4019fc6c171715377568156fb054624c27ed Mon Sep 17 00:00:00 2001 From: piotr6789 Date: Sun, 28 Mar 2021 22:05:15 +0200 Subject: [PATCH] add new job --- Jenkinsfile | 2 +- Jenkinsfile2 | 18 ++++++++++++++++++ bash2.sh | 3 +++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile2 create mode 100644 bash2.sh diff --git a/Jenkinsfile b/Jenkinsfile index 95b186e..39e1dd9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ node { password(defaultValue: '', description: 'Kaggle token', name: 'KAGGLE_KEY'), - string(defaultValue: '5000', + string(defaultValue: '1000', description: 'Data cutoff', name: 'CUTOFF', trim: false) diff --git a/Jenkinsfile2 b/Jenkinsfile2 new file mode 100644 index 0000000..508ade8 --- /dev/null +++ b/Jenkinsfile2 @@ -0,0 +1,18 @@ +pipeline { + agent any + parameters { + buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') + } + stages { + stage("One"){ + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's440058-create-dataset', selector: buildParameter('BUILD_SELECTOR') + + sh "chmod 777 ./bash2.sh" + sh "./bash2.sh" + + archiveArtifacts "courses.txt" + } + } + } +} \ No newline at end of file diff --git a/bash2.sh b/bash2.sh new file mode 100644 index 0000000..b9ce121 --- /dev/null +++ b/bash2.sh @@ -0,0 +1,3 @@ +wc -l courses.data.dev > courses.txt +wc -l courses.data.test > courses.txt +wc -l courses.data.train > courses.txt \ No newline at end of file