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

23
Jenkinsfile vendored
View File

@ -1,10 +1,25 @@
pipeline {
agent any
agent { dockerfile true }
stages {
stage('Hello') {
stage('checkoutGit') {
steps {
echo 'Hello World'
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