47 lines
1.8 KiB
Groovy
47 lines
1.8 KiB
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
stages {
|
|
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/'
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
|
|
stage('Zadanie 2 - Docker') {
|
|
steps {
|
|
sh 'gcc --version'
|
|
sh 'git --version'
|
|
}
|
|
}
|
|
|
|
stage('Zadanie 3 - Metryki') {
|
|
steps {
|
|
sh 'chmod 755 ./zadanie3/trn.sh'
|
|
sh './zadanie3/trn.sh'
|
|
archiveArtifacts 'zadanie3/hypothesis.trn'
|
|
archiveArtifacts 'zadanie3/reference.trn'
|
|
|
|
sh 'chmod 755 ./zadanie3/grep.sh'
|
|
sh './zadanie3/grep.sh'
|
|
archiveArtifacts 'zadanie3/wikiniews_results_wer.tsv'
|
|
archiveArtifacts 'zadanie3/wikiniews_results.tsv'
|
|
archiveArtifacts 'zadanie3/avg.tsv'
|
|
archiveArtifacts 'zadanie3/ssr.tsv'
|
|
}
|
|
}
|
|
}
|
|
} |