ium_434695/Jenkinsfile

32 lines
880 B
Plaintext
Raw Normal View History

2021-03-25 11:58:05 +01:00
pipeline {
agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters {
string (
2021-03-28 21:14:26 +02:00
defaultValue: '10000!',
description: 'Obcięcie zbioru',
name: 'CUTOFF',
2021-03-25 11:58:05 +01:00
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'
}
}
2021-03-28 21:02:12 +02:00
stage('sh: Shell Script') {
2021-03-25 11:58:05 +01:00
steps {
2021-03-28 21:02:12 +02:00
sh 'chmod +x skrypt.sh'
sh './skrypt.sh ${CUTOFF}'
2021-03-25 11:58:05 +01:00
}
}
2021-03-28 21:20:38 +02:00
stage('Artifacts') {
steps {
archiveArtifacts 'test.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
archiveArtifacts 'zadanie7.csv'
}
2021-03-25 11:58:05 +01:00
}
}