pipeline { agent any stages { stage('Stage 1') { steps { echo 'Hello world!' } } stage('Goodbye!') { steps { echo 'Goodbye!' //Zarchiwizuj wynik touch 'output.txt' archiveArtifacts 'output.txt' } } } }