2021-05-25 18:39:55 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Copy Archive') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
step ([$class: 'CopyArtifact',
|
|
|
|
projectName: 's434700-create-dataset',
|
|
|
|
filter: '*.csv',
|
2021-05-25 18:44:03 +02:00
|
|
|
target: 'datasets'])
|
2021-05-25 18:39:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
steps {
|
|
|
|
git 'https://git.wmi.amu.edu.pl/s434700/ium_s434700.git'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('sh: Shell Script') {
|
|
|
|
steps {
|
2021-05-25 18:44:03 +02:00
|
|
|
sh 'chmod +x ./stats/stats.sh'
|
|
|
|
sh './stats/stats.sh'
|
2021-05-25 18:39:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stat.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|