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

18
Jenkinsfile vendored
View File

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