Zaktualizuj 'Jenkinsfile'
This commit is contained in:
parent
c6473e9482
commit
65579f94e2
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -1,14 +1,19 @@
|
||||
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
|
||||
)
|
||||
}
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: 'patluk',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
),
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
])
|
||||
stages {
|
||||
stage('Hello') {
|
||||
steps {
|
||||
@ -25,10 +30,5 @@ 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user