ium_470623/jenkinsfile

39 lines
1.3 KiB
Plaintext

pipeline {
agent {
dockerfile {
additionalBuildArgs "-t ium --build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
}
}
parameters {
string(
defaultValue: 'ikami1',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '35041',
description: 'CUTOFF parameter',
name: 'CUTOFF')
}
stages {
stage('Test stage') {
steps {
echo 'Hello world! Some test text - added text'
}
}
stage('Shell script') {
steps {
sh 'chmod u+x ./download_dataset.sh'
sh "./download_dataset.sh"
sh "python3 process_dataset.py"
archiveArtifacts artifacts: "steel_industry_data_test.csv, steel_industry_data_dev.csv, steel_industry_data_train.csv", onlyIfSuccessful: true
}
}
}
}