s152203-mlworkshops/Jenkinsfile
2020-04-03 13:57:38 +02:00

45 lines
987 B
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('checkout'){
steps {
git url: 'https://git.wmi.amu.edu.pl/s152203/s152203-mlworkshops'
echo 'Check out from version control'
}
}
stage('Hello') {
steps {
echo 'Hello World'
}
}
stage('Copy artifacts'){
steps{
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Shell script'){
steps{
sh 'chmod +x script.sh'
sh './script.sh'
sh label: 'cat', script: 'cat res.txt'
}
}
stage('archiveArtifacts'){
steps{
archiveArtifacts 'res.txt'
archiveArtifacts 'script.sh'
}
}
stage('Dockerfile') {
steps {
sh 'gcc --version'
}
}
}
}