From 072bc15069535053c4321a2670e371b20476deaf Mon Sep 17 00:00:00 2001 From: Mateusz Piwowarski Date: Wed, 20 Mar 2024 14:37:27 +0100 Subject: [PATCH] Jenkins --- Jenkinsfile | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index acef5e1..a3a77e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,25 +1,12 @@ -node { - stage('Preparation') { - properties([ - parameters([ - string( - defaultValue: 'Hello World!', - description: 'Tekst do wyświetlenie', - name: 'INPUT_TEXT', - trim: false - ) - ]) - ]) - } - stage('Hello') { - //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') { - echo 'Goodbye!' - //Zarchiwizuj wynik - archiveArtifacts 'output.txt' +pipeline { + agent any + + stages { + stage('Clone Repository') { + steps { + // Clone the Git repository + git branch: 'main', url: 'https://git.wmi.amu.edu.pl/s464913/ium_464913' + } + } } } \ No newline at end of file