41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
|
|
parameters {
|
|
string(
|
|
defaultValue: 'karol9',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
string(
|
|
defaultValue: '100',
|
|
description: 'Dataset cutoff size',
|
|
name: 'CUTOFF'
|
|
)
|
|
password(
|
|
defaultValue: '',
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
name: 'KAGGLE_KEY'
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s495715/iumKC.git'
|
|
}
|
|
}
|
|
stage('Stats in docker') {
|
|
steps {
|
|
// run python3 main.py inside docker created from dockerfile in iumKC directory
|
|
// sh "docker build -t iumkc ."
|
|
sh "python3 main.py"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|