34 lines
907 B
Plaintext
34 lines
907 B
Plaintext
pipeline {
|
|
agent any
|
|
parameters{
|
|
string(
|
|
defaultValue: '0',
|
|
description: 'CUTOFF',
|
|
name: 'CUTOFF',
|
|
trim: false
|
|
)
|
|
}
|
|
stages {
|
|
stage('Clone repository') {
|
|
steps {
|
|
git 'https://git.wmi.amu.edu.pl/s444439/ium_z444439'
|
|
}
|
|
}
|
|
|
|
stage('Run shell script') {
|
|
steps {
|
|
sh 'mkdir -p dataset'
|
|
sh 'curl -o dataset/adult.data https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data'
|
|
sh 'sed -i "s/ //g" dataset/adult.data'
|
|
sh 'cut -d"," -f1,3-5,9-10,13 dataset/adult.data > dataset/processed_data.csv'
|
|
sh 'python script.py'
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
archiveArtifacts 'results/*'
|
|
}
|
|
}
|
|
} |