33 lines
887 B
Groovy
33 lines
887 B
Groovy
pipeline {
|
|
agent any
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
parameters {
|
|
string (
|
|
defaultValue: '10000',
|
|
description: 'Obcięcie zbioru',
|
|
name: 'CUTOFF',
|
|
trim: false
|
|
)
|
|
}
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc', url: 'https://git.wmi.amu.edu.pl/s434695/ium_434695.git'
|
|
}
|
|
}
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
sh 'chmod +x skrypt.sh'
|
|
sh './skrypt.sh ${CUTOFF}'
|
|
}
|
|
}
|
|
stage('Artifacts') {
|
|
steps {
|
|
archiveArtifacts 'test.csv'
|
|
archiveArtifacts 'dev.csv'
|
|
archiveArtifacts 'train.csv'
|
|
archiveArtifacts 'zadanie7.csv'
|
|
}
|
|
}
|
|
}
|
|
} |