ium_464906/Jenkinsfile

40 lines
977 B
Plaintext
Raw Normal View History

2024-03-26 23:02:02 +01:00
pipeline {
2024-04-02 20:38:20 +02:00
agent {
dockerfile true
}
2024-03-26 23:02:02 +01:00
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
}
}
}
}
}