fixed jenkinsfiles

This commit is contained in:
Maciej Tyczynski 2023-04-19 23:28:24 +02:00
parent a6c97ca1d5
commit 731e07c356
2 changed files with 7 additions and 12 deletions

9
Jenkinsfile vendored
View File

@ -1,16 +1,13 @@
pipeline {
agent any
agent {
dockerfile true
}
stages {
stage('Clone repository') {
steps {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
}
}
stage('Docker'){
agent {
dockerfile true
}
}
stage('Run script') {
steps {
sh 'sh getdata.sh'

View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
dockerfile true
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
@ -12,11 +14,7 @@ pipeline {
git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487176/ium_487176'
}
}
stage('Docker'){
agent {
dockerfile true
}
}
stage('Copy Artifacts') {
steps {
copyArtifacts(