ium_458023/JenkinsfileDatasetStats

57 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-06-30 20:31:45 +02:00
pipeline {
agent any
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
2023-06-30 20:38:22 +02:00
string(
defaultValue: 'mattkrawl',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: 'c21878a7463faa44361330ffbcea68a6',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '1000',
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
2023-06-30 20:31:45 +02:00
}
stages {
stage('Checkout') {
steps {
2023-06-30 14:37:26 +02:00
checkout scmGit(
2023-06-30 20:31:45 +02:00
branches: [[name: '*/master']],
2023-06-30 20:32:48 +02:00
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s458023/ium_458023.git']]
2023-06-30 14:37:26 +02:00
)
2023-06-30 20:31:45 +02:00
}
}
stage('Prepare stats') {
agent {
// docker {
// image 's458023/ium:1'
// reuseNode true
// }
dockerfile {
filename 'lab4.dockerfile'
reuseNode true
2023-06-30 14:37:26 +02:00
}
2023-06-30 20:31:45 +02:00
}
steps {
copyArtifacts projectName: 'z-s458023-create-dataset'
2023-06-30 20:34:26 +02:00
sh 'bash /get-data.sh'
2023-06-30 20:31:45 +02:00
sh 'python3 wines_train.py'
sh 'python3 predict.py'
2023-06-30 20:49:10 +02:00
archiveArtifacts 'predictions.csv'
2023-06-30 20:31:45 +02:00
}
}
}
2023-06-30 14:37:26 +02:00
}