From 5c200cb1312a273d0785e73a2427ffa79768bcf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=9Awi=C4=85tek?= Date: Sat, 8 Apr 2023 16:20:53 +0200 Subject: [PATCH] Change Jenkinsfile --- Jenkinsfile | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dc442e7..2cae1a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,25 +1,16 @@ -node { - stage('Preparation') { - properties([ - parameters([ - string( - defaultValue: 'Hello World!', - description: 'Tekst do wyświetlenia', - 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('Checkout') { + steps { + git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487185/inzynieria-uczenia-maszynowego.git' + } + } + stage('Shell script') { + steps { + sh 'echo test' + } + } } }