s407323-mlworkshops/Jenkinsfile

44 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2019-04-26 11:05:16 +02:00
pipeline {
2019-04-26 12:26:11 +02:00
agent { dockerfile true }
2019-04-26 11:05:16 +02:00
stages {
2019-04-26 13:37:26 +02:00
stage('Zadanie 1 - Jenkins') {
steps {
echo 'Kopiowanie plików z wynikami rozpoznawania mowy z artefaktów projektu ASR-eval'
script {
copyArtifacts filter: '*',
fingerprintArtifacts: true,
projectName: 'ASR-eval',
selector: lastSuccessful(),
target: 'ASR-eval/'
2019-04-26 11:37:22 +02:00
}
2019-04-26 13:37:26 +02:00
echo 'Sklonowanie repozytorium git'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s407323/s407323-mlworkshops']]])
echo 'Wywołanie skryptu shella'
sh 'chmod 755 ./zadanie1/script.sh'
sh './zadanie1/script.sh'
echo 'Zarchiwizowanie wyniku'
archiveArtifacts 'zadanie1/output.txt'
}
}
2019-04-26 13:37:26 +02:00
stage('Zadanie 2 - Docker') {
steps {
sh 'gcc --version'
sh 'git --version'
}
2019-04-26 13:37:26 +02:00
}
stage('Zadanie 3 - Metryki') {
steps {
2019-04-26 14:37:22 +02:00
sh 'chmod 755 ./zadanie3/trn.sh'
2019-04-26 15:02:00 +02:00
sh './zadanie3/trn.sh'
2019-04-26 16:01:09 +02:00
sh 'chmod 755 ./zadanie3/grep.sh'
sh './zadanie3/grep.sh'
2019-04-26 16:15:39 +02:00
archiveArtifacts 'zadanie3/wikiniews_results_wer.tsv'
archiveArtifacts 'zadanie3/wikiniews_results.tsv'
2019-04-26 16:34:24 +02:00
archiveArtifacts 'zadanie3/avg.txt'
archiveArtifacts 'zadanie3/ssr.txt'
}
}
2019-04-26 11:05:16 +02:00
}
}