zmienne
This commit is contained in:
parent
a8dd740c2f
commit
182cb25077
59
Jenkinsfile
vendored
59
Jenkinsfile
vendored
@ -1,37 +1,40 @@
|
|||||||
pipeline {
|
node {
|
||||||
agent { dockerfile true }
|
stage('One') {
|
||||||
parameters {
|
|
||||||
string(
|
properties([
|
||||||
defaultValue: '0',
|
parameters([
|
||||||
description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.',
|
string(defaultValue: '',
|
||||||
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')
|
||||||
|
])
|
||||||
|
]
|
||||||
)
|
)
|
||||||
password(
|
stage('Two') {
|
||||||
defaultValue: '',
|
|
||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
||||||
name: 'KAGGLE_KEY'
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
)
|
"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
|
||||||
|
|
||||||
|
def image = docker.build("image")
|
||||||
|
image.inside {
|
||||||
|
sh 'ls -l'
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('docker') {
|
|
||||||
steps {
|
|
||||||
sh 'cat /etc/issue'
|
|
||||||
sh 'ls -l'
|
|
||||||
sh 'chmod +x skrypt.sh'
|
|
||||||
sh './skrypt.sh 0'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user