2021-03-25 11:58:05 +01:00
|
|
|
pipeline {
|
2021-04-11 15:49:38 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2021-05-15 19:25:09 +02:00
|
|
|
|
|
|
|
options {
|
|
|
|
copyArtifactPermission('s434742-training, s434742-evaluation');
|
|
|
|
}
|
2021-03-25 11:58:05 +01:00
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
|
|
parameters {
|
|
|
|
string (
|
2021-03-28 21:21:48 +02:00
|
|
|
defaultValue: '10000',
|
2021-03-28 21:14:26 +02:00
|
|
|
description: 'Obcięcie zbioru',
|
|
|
|
name: 'CUTOFF',
|
2021-03-25 11:58:05 +01:00
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
2021-04-11 15:49:38 +02:00
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
sh 'cat /etc/issue'
|
|
|
|
}
|
|
|
|
}
|
2021-03-25 12:38:20 +01:00
|
|
|
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'
|
2021-03-28 21:31:28 +02:00
|
|
|
archiveArtifacts 'obcietedane.csv'
|
2021-03-28 21:20:38 +02:00
|
|
|
}
|
2021-03-28 21:23:57 +02:00
|
|
|
}
|
2021-03-25 11:58:05 +01:00
|
|
|
}
|
|
|
|
}
|