Zaktualizuj 'Jenkinsfile'
This commit is contained in:
parent
c6473e9482
commit
65579f94e2
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -1,14 +1,19 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
||||||
parameters {
|
parameters([
|
||||||
string (
|
string(
|
||||||
defaultValue: 'Hello World!',
|
defaultValue: 'patluk',
|
||||||
description: 'Tekst, którym chcesz przywitać świat',
|
description: 'Kaggle username',
|
||||||
name: 'INPUT_TEXT',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
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 {
|
stages {
|
||||||
stage('Hello') {
|
stage('Hello') {
|
||||||
steps {
|
steps {
|
||||||
@ -25,10 +30,5 @@ pipeline {
|
|||||||
archiveArtifacts 'output.txt'
|
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