ium_z444439/JenkinsFile

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-04-19 17:21:39 +02:00
pipeline {
2023-04-19 17:51:56 +02:00
agent any
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
parameters{
2023-04-19 17:21:39 +02:00
string(
2023-04-19 17:51:56 +02:00
defaultValue: '500',
2023-04-19 17:21:39 +02:00
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
2023-04-19 17:51:56 +02:00
}
stages {
stage('clear_all') {
steps {
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
sh 'rm -rf *'
}
2023-04-19 17:21:39 +02:00
}
2023-04-19 17:51:56 +02:00
stage('Build') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s444439/ium_z444439'
// Run the maven build
sh 'curl -O https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data'
sh 'sed -i "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'
sh 'mv adult.data adult.csv'
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'
archiveArtifacts 'X_test.csv'
archiveArtifacts 'X_dev.csv'
archiveArtifacts 'X_train.csv'
}
}
2023-04-19 17:21:39 +02:00
}
}