added env vars

This commit is contained in:
Adam Wojdyla 2022-04-01 22:06:47 +02:00
parent 94d054c24e
commit 79abbbbd96
2 changed files with 15 additions and 2 deletions

View File

@ -11,7 +11,7 @@ WORKDIR /app
COPY ./figlet-loop.sh ./ COPY ./figlet-loop.sh ./
COPY ./download.sh ./ COPY ./download.sh ./
COPY ./script.py ./ COPY ./script.py ./
COPY ./kaggle.json /root/.kaggle/kaggle.json # COPY ./kaggle.json /root/.kaggle/kaggle.json
# RUN ./download.sh 117928 # RUN ./download.sh 117928
RUN python3 ./script.py RUN python3 ./script.py

View File

@ -2,10 +2,23 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters {
string(
defaultValue: 'heatedboss2',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
}
stages { stages {
stage('Test') { stage('Test') {
steps { steps {
sh 'cat /etc/issue' sh 'env'
} }
} }
} }