ium_z444439/Jenkinsfile

55 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

2023-04-19 17:21:39 +02:00
pipeline {
2023-04-19 17:51:56 +02:00
agent any
parameters{
2023-04-19 17:21:39 +02:00
string(
2023-04-19 20:26:51 +02:00
defaultValue: '200',
2023-04-19 17:21:39 +02:00
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
2023-04-19 17:51:56 +02:00
}
2023-04-19 19:46:29 +02:00
stages {
2023-05-11 18:27:25 +02:00
stage('Clear_Before') {
2023-04-19 17:51:56 +02:00
steps {
sh 'rm -rf *'
}
2023-04-19 17:21:39 +02:00
}
2023-05-11 18:27:25 +02:00
stage('Clone_and_Build') {
2023-04-19 17:51:56 +02:00
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s444439/ium_z444439'
2023-04-19 19:58:07 +02:00
sh 'curl -O https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data'
2023-04-19 20:26:51 +02:00
sh 'sed "1i\\age,workclass,fnlwgt,education,education-num,marital-status,occupation,relationship,race,sex,capital-gain,capital-loss,hours-per-week,native-country,income" adult.data > adult.csv'
sh 'rm adult.data'
2023-04-19 17:51:56 +02:00
sh 'ls -a'
sh 'ls -a ./ium_z444439'
}
}
stage('Docker') {
2023-04-19 19:46:29 +02:00
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z444439'
reuseNode true
}
}
steps {
2023-04-19 17:51:56 +02:00
sh 'ls -a'
sh 'python ./ium_z444439/create-dataset.py'
2023-04-19 18:47:42 +02:00
echo 'process finish'
2023-05-11 18:27:25 +02:00
archiveArtifacts 'X_test.csv'
archiveArtifacts 'X_dev.csv'
archiveArtifacts 'X_train.csv'
archiveArtifacts 'Y_test.csv'
archiveArtifacts 'Y_dev.csv'
archiveArtifacts 'Y_train.csv'
2023-04-19 19:46:29 +02:00
}
2023-04-19 17:51:56 +02:00
}
2023-05-11 18:27:25 +02:00
stage('Clear_After') {
steps {
sh 'rm -rf *'
}
}
2023-04-19 17:21:39 +02:00
}
}