ium_434695/Jenkinsfile

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-03-25 11:58:05 +01:00
pipeline {
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 {
stage('Test') {
steps {
sh 'cat /etc/issue'
}
}
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
}
}