32 lines
865 B
Plaintext
32 lines
865 B
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF}"
|
|
}
|
|
}
|
|
parameters {
|
|
string(
|
|
defaultValue: 'maciejczajka',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: 'd8f044ad2b96d32372e22f9054c02bb1',
|
|
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 lines',
|
|
name: 'CUTOFF'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Script'){
|
|
steps {
|
|
sh 'python3 ./Zajecia_2/main.py'
|
|
}
|
|
}
|
|
}
|
|
} |