30 lines
1.1 KiB
Groovy
30 lines
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
echo 'Hello world!'
|
|
}
|
|
}
|
|
|
|
stage('Stage 2') {
|
|
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 ./script.sh'
|
|
sh './script.sh'
|
|
echo 'Zarchiwizowanie wyniku'
|
|
archiveArtifacts 'output.txt'
|
|
}
|
|
}
|
|
}
|
|
} |