38 lines
1.3 KiB
Groovy
38 lines
1.3 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'
|
|
}
|
|
}
|
|
}
|
|
} |