ium_434784/Jenkinsfile

43 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2021-03-28 22:19:38 +02:00
pipeline {
agent any
2021-05-16 21:39:01 +02:00
options {
copyArtifactPermission('s434784-training, s434784-evaluation');
}
2021-03-28 23:14:31 +02:00
2021-03-28 23:15:28 +02:00
parameters{
2021-03-28 23:06:58 +02:00
string(
2021-03-29 02:14:15 +02:00
defaultValue: '1000',
description: 'cutoff',
2021-03-29 02:41:21 +02:00
name: 'CUTOFF',
trim:false
2021-03-28 23:16:32 +02:00
)
2021-03-28 23:15:28 +02:00
}
2021-03-28 23:14:31 +02:00
stages {
2021-03-28 22:28:55 +02:00
stage('checkout: Check out from version control') {
2021-03-28 22:19:38 +02:00
steps {
2021-03-29 00:57:26 +02:00
git 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
2021-03-28 22:19:38 +02:00
}
}
2021-03-28 22:41:59 +02:00
stage('sh: Shell Script') {
steps {
2021-04-12 00:54:11 +02:00
script {
def image = docker.build('dock')
image.inside{
2021-05-16 21:06:46 +02:00
sh 'chmod +x preprocesing.py'
2021-04-12 00:54:11 +02:00
sh 'echo ${CUTOFF}'
2021-05-16 21:08:09 +02:00
sh 'python3 preprocesing.py ${CUTOFF}'
2021-04-12 00:54:11 +02:00
}
2021-04-12 00:52:31 +02:00
}
2021-03-28 22:41:59 +02:00
}
}
2021-03-29 02:03:31 +02:00
stage('archiveArtifacts'){
steps{
2021-05-16 21:06:46 +02:00
archiveArtifacts 'test.csv'
archiveArtifacts 'validate.csv'
archiveArtifacts 'train.csv'
2021-03-29 02:03:31 +02:00
}
}
2021-03-28 22:19:38 +02:00
}
}