s407323-mlworkshops/Jenkinsfile

30 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-04-26 11:05:16 +02:00
pipeline {
agent any
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
2019-04-26 11:29:26 +02:00
stage('Stage 2') {
steps {
2019-04-26 11:37:22 +02:00
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']]])
2019-04-26 12:20:02 +02:00
echo 'Wywołanie skryptu shella'
2019-04-26 12:21:16 +02:00
sh 'chmod 755 ./script.sh'
2019-04-26 12:20:02 +02:00
sh './script.sh'
echo 'Zarchiwizowanie wyniku'
archiveArtifacts 'output.txt'
}
2019-04-26 11:29:26 +02:00
}
2019-04-26 11:05:16 +02:00
}
}