Update Jenkinsfile

This commit is contained in:
s464906 2024-03-26 23:02:02 +01:00
parent 8c9e0a8381
commit 369777ee87
1 changed files with 37 additions and 30 deletions

67
Jenkinsfile vendored
View File

@ -1,30 +1,37 @@
pipeline {
agent any
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
}
}
}
}
}
pipeline {
agent any
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
}
}
}
}
}