2022-03-21 10:51:30 +01:00
|
|
|
pipeline {
|
2022-03-27 23:51:53 +02:00
|
|
|
agent any
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: 'ikami1',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2022-03-28 00:02:52 +02:00
|
|
|
)
|
|
|
|
password(
|
2022-03-28 00:18:55 +02:00
|
|
|
defaultValue: '',
|
2022-03-27 23:51:53 +02:00
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
2022-03-28 00:02:52 +02:00
|
|
|
string(
|
|
|
|
defaultValue: "1",
|
|
|
|
description: 'CUTOFF',
|
|
|
|
name: 'CUTOFF'
|
|
|
|
)
|
2022-03-27 23:51:53 +02:00
|
|
|
}
|
|
|
|
environment {
|
|
|
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
|
|
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
2022-03-28 00:02:52 +02:00
|
|
|
CUTOFF="$params.CUTOFF"
|
2022-03-27 23:51:53 +02:00
|
|
|
}
|
2022-03-21 10:51:30 +01:00
|
|
|
stages {
|
2022-03-27 23:51:53 +02:00
|
|
|
stage('Test stage') {
|
2022-03-21 10:51:30 +01:00
|
|
|
steps {
|
2022-03-21 10:58:23 +01:00
|
|
|
echo 'Hello world! Some test text - added text'
|
2022-03-21 10:51:30 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-27 23:51:53 +02:00
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
2022-03-28 00:03:44 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's470623', url: 'https://git.wmi.amu.edu.pl/s470623/ium_470623.git']]])
|
2022-03-27 23:51:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Shell script') {
|
|
|
|
steps {
|
2022-03-28 00:02:52 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
|
|
"CUTOFF=${params.CUTOFF}"]) {
|
|
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
2022-03-28 00:16:05 +02:00
|
|
|
sh 'echo KAGGLE_KEY: KAGGLE_KEY'
|
2022-03-28 00:02:52 +02:00
|
|
|
sh './download.sh'
|
|
|
|
}
|
|
|
|
archiveArtifacts artifacts: 'steel_industry_data_test.csv, steel_industry_data_dev.csv, steel_industry_data_train.csv'
|
2022-03-27 23:51:53 +02:00
|
|
|
}
|
|
|
|
}
|
2022-03-21 10:51:30 +01:00
|
|
|
}
|
|
|
|
}
|