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 12:51:02 +02:00
|
|
|
|
2019-04-26 13:37:26 +02:00
|
|
|
stage('Zadanie 2 - Docker') {
|
|
|
|
steps {
|
|
|
|
sh 'gcc --version'
|
|
|
|
sh 'git --version'
|
2019-04-26 12:57:22 +02:00
|
|
|
}
|
2019-04-26 13:37:26 +02:00
|
|
|
}
|
2019-04-26 12:57:22 +02:00
|
|
|
|
|
|
|
stage('Zadanie 3 - Metryki') {
|
2019-04-26 12:51:02 +02:00
|
|
|
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 12:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-26 11:05:16 +02:00
|
|
|
}
|
|
|
|
}
|