ium_444465/Jenkinsfile

46 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-03-21 11:05:30 +01:00
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'Hello World!',
description: 'Tekst do wyświetlenie',
name: 'INPUT_TEXT',
trim: false
2022-03-27 13:28:05 +02:00
),
string(
defaultValue: "10000",
description: "How many records use",
name: "CUTOFF"
2022-03-27 14:59:01 +02:00
),
string (
defaultValue: 'andrzejpreibisz',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
),
password(
defaultValue: '',
description: 'Kaggle token key',
name: 'KAGGLE_KEY'
2022-03-21 11:05:30 +01:00
)
])
])
}
2022-03-27 14:59:01 +02:00
stage("Git clone"){
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
}
2022-03-27 13:28:05 +02:00
stage('Download') {
2022-03-27 14:59:01 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}",
"CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 dataset_script.sh"
sh "./dataset_script.sh $CUTOFF"
}
2022-03-21 11:05:30 +01:00
}
stage('Goodbye') {
echo 'Goodbye!'
//Zarchiwizuj wynik
2022-03-27 13:28:05 +02:00
archiveArtifacts 'heart_2020_test.csv, heart_2020_train.csv, heart_2020_sorted.csv'
2022-03-21 11:05:30 +01:00
}
}