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

38
Jenkinsfile vendored
View File

@ -1,29 +1,27 @@
pipeline {
agent any
stages {
stage('checkout: Check out from version control') {
stages {
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 {
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
}
}
stage('Count lines'){
steps {
sh('chmod +x ./script.sh')
sh('./script.sh')
}
}
}
stage('countLines') {
steps {
sh 'chmod 777 ./script.sh'
sh './script.sh'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'countlines_result.txt'
}
}
}
stage('Save result'){
steps {
archiveArtifacts 'lines_number.txt'
}
}
}
}
}