43 lines
1.1 KiB
Groovy
43 lines
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
copyArtifactPermission('s434784-training, s434784-evaluation');
|
|
}
|
|
|
|
parameters{
|
|
string(
|
|
defaultValue: '1000',
|
|
description: 'cutoff',
|
|
name: 'CUTOFF',
|
|
trim:false
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
|
|
}
|
|
}
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
script {
|
|
def image = docker.build('dock')
|
|
image.inside{
|
|
sh 'chmod +x preprocesing.py'
|
|
sh 'echo ${CUTOFF}'
|
|
sh 'python3 preprocesing.py ${CUTOFF}'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
stage('archiveArtifacts'){
|
|
steps{
|
|
archiveArtifacts 'test.csv'
|
|
archiveArtifacts 'validate.csv'
|
|
archiveArtifacts 'train.csv'
|
|
}
|
|
}
|
|
}
|
|
} |