This commit is contained in:
vagrant 2020-04-18 16:26:02 +00:00
parent ec989a253e
commit fbc9653122
2 changed files with 28 additions and 10 deletions

35
Jenkinsfile vendored
View File

@ -1,11 +1,26 @@
pipeline {
agent any
stages {
stage('Hello') {
steps {
echo 'Hello World'
}
}
}
}
agent { dockerfile true }
stages {
stage('checkoutGit') {
steps {
git 'https://git.wmi.amu.edu.pl/s426086/s426086-mlworkshops'
}
}
stage('copyArtifacts') {
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
}
}
stage('countLines') {
steps {
sh 'chmod 777 ./countlines.sh'
sh './countlines.sh'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'cl_result.txt'
}
}
}
}

3
countlines.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
wc -l wikiniews_results.tsv > countlines_result.txt