fgb
This commit is contained in:
parent
22d024f9c9
commit
26e5e32481
39
Jenkinsfile
vendored
39
Jenkinsfile
vendored
@ -15,17 +15,17 @@ pipeline {
|
||||
try {
|
||||
properties([
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
),
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token taken from kaggle.json file',
|
||||
name: 'KAGGLE_KEY'
|
||||
),
|
||||
// string(
|
||||
// defaultValue: '',
|
||||
// description: 'Kaggle username',
|
||||
// name: 'KAGGLE_USERNAME',
|
||||
// trim: false
|
||||
// ),
|
||||
// password(
|
||||
// defaultValue: '',
|
||||
// description: 'Kaggle token taken from kaggle.json file',
|
||||
// name: 'KAGGLE_KEY'
|
||||
// ),
|
||||
string(
|
||||
defaultValue: '50',
|
||||
description: 'number of examples in dataset',
|
||||
@ -44,9 +44,19 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
try {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
// withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
// "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
// sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
// sh '''
|
||||
// #!/bin/bash
|
||||
// pip install kaggle
|
||||
|
||||
// git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
||||
|
||||
// echo "Processed Data" > output.txt
|
||||
// '''
|
||||
// sh "head -n ${params.CUTOFF} data.csv"
|
||||
// }
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
pip install kaggle
|
||||
@ -56,7 +66,6 @@ pipeline {
|
||||
echo "Processed Data" > output.txt
|
||||
'''
|
||||
sh "head -n ${params.CUTOFF} data.csv"
|
||||
}
|
||||
} catch (err) {
|
||||
error "Failed to build: ${err.message}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user