diff --git a/Jenkinsfile b/Jenkinsfile index 0352999..b2451b5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -pipeline { +ipeline { agent any //Definijuemy parametry, które będzie można podać podczas wywoływania zadania parameters { @@ -25,5 +25,10 @@ pipeline { archiveArtifacts 'output.txt' } } + stage('Notify') { + steps { + emailext attachLog: true, attachmentsPattern: 'output.txt', body: "${INPUT_TEXT}", subject: 'Hello World!', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms; tomasz.zietkiewicz@amu.edu.pl' + } + } } } \ No newline at end of file