ium_z444439/Jenkinsfile
2023-05-11 18:27:25 +02:00

55 lines
1.6 KiB
Groovy

pipeline {
agent any
parameters{
string(
defaultValue: '200',
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
}
stages {
stage('Clear_Before') {
steps {
sh 'rm -rf *'
}
}
stage('Clone_and_Build') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s444439/ium_z444439'
sh 'curl -O https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data'
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'
sh 'ls -a'
sh 'ls -a ./ium_z444439'
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z444439'
reuseNode true
}
}
steps {
sh 'ls -a'
sh 'python ./ium_z444439/create-dataset.py'
echo 'process finish'
archiveArtifacts 'X_test.csv'
archiveArtifacts 'X_dev.csv'
archiveArtifacts 'X_train.csv'
archiveArtifacts 'Y_test.csv'
archiveArtifacts 'Y_dev.csv'
archiveArtifacts 'Y_train.csv'
}
}
stage('Clear_After') {
steps {
sh 'rm -rf *'
}
}
}
}