zmienne
This commit is contained in:
parent
b1b468bf93
commit
25fda138b9
63
Jenkinsfile
vendored
63
Jenkinsfile
vendored
@ -1,42 +1,41 @@
|
|||||||
node {
|
pipeline {
|
||||||
stage('One') {
|
agent any
|
||||||
|
parameters {
|
||||||
properties([
|
string(
|
||||||
parameters([
|
defaultValue: '0',
|
||||||
string(defaultValue: '',
|
description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.',
|
||||||
|
name: 'CUTOFF',
|
||||||
|
trim: false
|
||||||
|
)
|
||||||
|
string(
|
||||||
|
defaultValue: 'rokoch',
|
||||||
description: 'Kaggle username',
|
description: 'Kaggle username',
|
||||||
name: 'KAGGLE_USERNAME',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false),
|
trim: false
|
||||||
password(defaultValue: '',
|
|
||||||
description: 'Kaggle token',
|
|
||||||
name: 'KAGGLE_KEY')
|
|
||||||
])
|
|
||||||
]
|
|
||||||
)
|
)
|
||||||
stage('Two') {
|
password(
|
||||||
|
defaultValue: '',
|
||||||
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
name: 'KAGGLE_KEY'
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('checkout') {
|
||||||
|
steps {
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
checkout scm
|
stage('docker') {
|
||||||
|
agent { dockerfile true }
|
||||||
def image = docker.build("image")
|
steps {
|
||||||
image.inside {
|
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh './skrypt.sh'
|
sh 'ls -l'
|
||||||
}
|
sh 'chmod +x skrypt.sh'
|
||||||
|
sh './skrypt.sh 0'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user