50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
pipeline {
|
|
agent any
|
|
parameters {
|
|
string(
|
|
defaultValue: 'ikami1',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: '17eaeb44a09284608df768f4c9c8c7af',
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
name: 'KAGGLE_KEY'
|
|
)
|
|
string(
|
|
defaultValue: "1",
|
|
description: 'CUTOFF',
|
|
name: 'CUTOFF'
|
|
)
|
|
}
|
|
environment {
|
|
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
|
|
KAGGLE_KEY="$params.KAGGLE_KEY"
|
|
CUTOFF="$params.CUTOFF"
|
|
}
|
|
stages {
|
|
stage('Test stage') {
|
|
steps {
|
|
echo 'Hello world! Some test text - added text'
|
|
}
|
|
}
|
|
stage('Checkout') {
|
|
steps {
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's470623', url: 'https://git.wmi.amu.edu.pl/s470623/ium_470623.git']]])
|
|
}
|
|
}
|
|
stage('Shell script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
"CUTOFF=${params.CUTOFF}"]) {
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
sh 'echo KAGGLE_KEY: KAGGLE_KEY'
|
|
sh './download.sh'
|
|
}
|
|
archiveArtifacts artifacts: 'steel_industry_data_test.csv, steel_industry_data_dev.csv, steel_industry_data_train.csv'
|
|
}
|
|
}
|
|
}
|
|
} |