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:35:49 +02:00
|
|
|
parallel(
|
|
|
|
'Zadanie 1 - Jenkins' : {
|
2019-04-26 13:31:59 +02:00
|
|
|
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'
|
2019-04-26 11:37:22 +02:00
|
|
|
}
|
2019-04-26 13:35:49 +02:00
|
|
|
},
|
2019-04-26 12:51:02 +02:00
|
|
|
|
2019-04-26 13:35:49 +02:00
|
|
|
'Zadanie 2 - Docker' : {
|
2019-04-26 13:31:59 +02:00
|
|
|
steps {
|
|
|
|
sh 'gcc --version'
|
|
|
|
sh 'git --version'
|
|
|
|
}
|
2019-04-26 12:57:22 +02:00
|
|
|
}
|
2019-04-26 13:35:49 +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 13:18:27 +02:00
|
|
|
sh 'python3 --version'
|
2019-04-26 13:16:15 +02:00
|
|
|
sh 'python3 ./zadanie3/script.py'
|
2019-04-26 12:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-26 11:05:16 +02:00
|
|
|
}
|
|
|
|
}
|