This commit is contained in:
Ufnow 2020-04-21 21:05:18 +02:00
parent 6ded7a1394
commit c0cd988833

25
Jenkinsfile vendored
View File

@ -1,17 +1,24 @@
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Checkout') { stage('checkout: Check out from version control') {
steps { steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops']]]) git branch: 'master',
url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git'
} }
} }
stage('Copy artifacts'){ stage('Copy Archive') {
steps { steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() script {
} step ([$class: 'CopyArtifact',
} filter: "wikiniews_results.tsv",
stage('Count lines and metrics'){ target: 'wikiniews_results.tsv',
fingerprintArtifacts: true,
projectName: 'ASR-eval', selector: lastSuccessful()]);
}
}
}
stage('Count lines'){
steps { steps {
sh('chmod +x ./script.sh') sh('chmod +x ./script.sh')
sh('./script.sh') sh('./script.sh')
@ -23,4 +30,4 @@ pipeline {
} }
} }
} }
} }