zmienne
This commit is contained in:
parent
108eedb9b4
commit
cdca12aad5
@ -1,5 +1,5 @@
|
|||||||
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
# Nasz obraz będzie dzidziczył z obrazu Ubuntu w wersji latest
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:focal
|
||||||
|
|
||||||
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
49
Jenkinsfile
vendored
49
Jenkinsfile
vendored
@ -1,41 +1,12 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
parameters {
|
docker { image 'node:14-alpine' }
|
||||||
string(
|
}
|
||||||
defaultValue: '0',
|
stages {
|
||||||
description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.',
|
stage('Test') {
|
||||||
name: 'CUTOFF',
|
steps {
|
||||||
trim: false
|
sh 'node --version'
|
||||||
)
|
}
|
||||||
string(
|
}
|
||||||
defaultValue: 'rokoch',
|
}
|
||||||
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'
|
|
||||||
)
|
|
||||||
}
|
|
||||||
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']]])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('docker') {
|
|
||||||
steps {
|
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
|
||||||
script {
|
|
||||||
def img = docker.build('rokoch/ium:01')
|
|
||||||
img.inside('-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}') {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user