From 134226e2513543fcc4e8820dda8c3d2f79a5ea06 Mon Sep 17 00:00:00 2001 From: filnow Date: Tue, 26 Mar 2024 17:59:55 +0100 Subject: [PATCH] jenksinsfile1 --- Jenkinsfile | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0352999..89aa24e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,10 @@ 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 - ) - } - stages { - stage('Hello') { - steps { - //Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!) - echo "INPUT_TEXT: ${INPUT_TEXT}" - //Wywołaj w konsoli komendę "figlet", która generuje ASCI-art - sh "figlet \"${INPUT_TEXT}\" | tee output.txt" - } - } - stage('Goodbye!') { - steps { - echo 'Goodbye!' - //Zarchiwizuj wynik - archiveArtifacts 'output.txt' - } - } - } + agent any + stages { + stage('Stage 1') { + steps { + echo 'Hello World' + } + } + } } \ No newline at end of file