This commit is contained in:
Ufnow 2020-04-21 21:55:57 +02:00
parent c0dc6d7bed
commit 308b8ec2c4

16
Jenkinsfile vendored
View File

@ -1,27 +1,25 @@
pipeline {
agent any
stages {
stage('checkout: Check out from version control') {
stage('checkoutGit') {
steps {
git branch: 'master',
url: 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops.git'
git 'https://git.wmi.amu.edu.pl/s426274/s426274-mlworkshops'
}
}
stage('copyArtifacts') {
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
}
}
stage('Count lines'){
stage('countLines') {
steps {
sh('chmod +x ./script.sh')
sh('./script.sh')
sh 'chmod 777 ./script.sh'
sh './script.sh'
}
}
stage('Save result'){
stage('archiveArtifacts') {
steps {
archiveArtifacts 'lines_number.txt'
archiveArtifacts 'countlines_result.txt'
}
}
}