From 65579f94e2ae080986f8a4d9f11c603afa85b933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20=C5=81ukasiewicz?= Date: Tue, 18 Apr 2023 15:37:40 +0200 Subject: [PATCH] Zaktualizuj 'Jenkinsfile' --- Jenkinsfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b588ca6..a72678a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,19 @@ pipeline { agent any //Definijuemy parametry, które będzie można podać podczas wywoływania zadania - parameters { - string ( - defaultValue: 'Hello World!', - description: 'Tekst, którym chcesz przywitać świat', - name: 'INPUT_TEXT', - trim: false - ) - } + parameters([ + string( + defaultValue: 'patluk', + 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('Hello') { steps { @@ -25,10 +30,5 @@ pipeline { archiveArtifacts 'output.txt' } } - stage('Notify') { - steps { - emailext attachLog: true, attachmentsPattern: 'output.txt', body: "${INPUT_TEXT}", subject: 'Hello World!', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms; tomasz.zietkiewicz@amu.edu.pl' - } - } } } \ No newline at end of file