32c580f9ba
This reverts commit ac3e87e726
.
40 lines
975 B
Groovy
40 lines
975 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
|
|
parameters {
|
|
string(
|
|
defaultValue: '10000',
|
|
name: 'CUTOFF',
|
|
description: 'Liczba wierszy do obcięcia ze zbioru danych')
|
|
}
|
|
|
|
stages {
|
|
stage('Clone repository') {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906']]])
|
|
}
|
|
}
|
|
stage('Set execute permission') {
|
|
steps {
|
|
script {
|
|
sh 'chmod +x data_processing.sh'
|
|
}
|
|
}
|
|
}
|
|
stage('Run shell script') {
|
|
steps {
|
|
script {
|
|
sh './data_processing.sh'
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|