Add Dockerfile support for Jenkins
This commit is contained in:
parent
242815f99d
commit
ac26c9c7ad
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -1,5 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
|
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
|
||||||
}
|
}
|
||||||
@ -8,6 +10,7 @@ stages {
|
|||||||
steps {
|
steps {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
||||||
|
sh 'python3 script.py'
|
||||||
// Uruchomienie skryptu
|
// Uruchomienie skryptu
|
||||||
sh "chmod 777 ./data_download.sh"
|
sh "chmod 777 ./data_download.sh"
|
||||||
sh "./data_download.sh"
|
sh "./data_download.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user