51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
pipeline {
|
|
agent any
|
|
|
|
parameters {
|
|
string(
|
|
defaultValue: 'reyvan123',
|
|
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: '1,3,4',
|
|
description: 'Column indices to remove',
|
|
name: 'CUT',
|
|
trim: false
|
|
)
|
|
string(
|
|
defaultValue: '100',
|
|
description: 'Cutoff size for the dataset (number of first/random examples)',
|
|
name: 'CUTOFF',
|
|
trim: false
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('checkout: Check out from version control') {
|
|
steps {
|
|
checkout scm
|
|
}
|
|
}
|
|
stage('sh: Shell Script') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
|
"CUT=${params.CUT}",
|
|
"CUTOFF=${params.CUTOFF}" ]) {
|
|
sh 'chmod +x script.sh'
|
|
sh './script.sh'
|
|
archiveArtifacts artifacts: 'output.txt.gz', fingerprint: true
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|