diff --git a/Jenkinsfile b/Jenkinsfile index c9ff6b1..8821544 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,22 @@ 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 + 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 ASCII-art - sh "figlet \"${INPUT_TEXT}\" | tee output.txt" - } - } - stage('Goodbye!') { - steps { - echo 'Goodbye!' - //Zarchiwizuj wynik - archiveArtifacts 'output.txt' - } - } - } + } + stages { + stage('Checkout') { + steps { + checkout scmGit( + branches: [[name: '*/main']], + extensions: [], + userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/pms/ium-s301654']]) + } + } + } } \ No newline at end of file