add new job

This commit is contained in:
piotr6789 2021-03-28 22:05:15 +02:00
parent adbdbef4b5
commit 632d4019fc
3 changed files with 22 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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)

18
Jenkinsfile2 Normal file
View File

@ -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"
}
}
}
}

3
bash2.sh Normal file
View File

@ -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