This commit is contained in:
s444501 2022-03-27 21:39:18 +02:00
parent d87837d0c0
commit 947665d361
2 changed files with 30 additions and 0 deletions

27
Jenkinsfile2 Normal file
View File

@ -0,0 +1,27 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
}
}
stage('Shell Script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./stats.sh'
sh './stats.sh'
archiveArtifacts 'stats.txt'
}
}
}

3
stats.sh Normal file
View File

@ -0,0 +1,3 @@
wc -l d_test.csv > stats.txt
wc -l d_dev.csv >> stats.txt
wc -l d_train.csv >> stats.txt