44 lines
952 B
Groovy
44 lines
952 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 {
|
|
}
|
|
}
|
|
|
|
}
|
|
} |