Update Jenkinsfile

This commit is contained in:
Oleksandr Butenko 2021-07-12 19:37:41 +03:00 committed by GitHub
parent 9b9532ec58
commit 5ffdb44601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
Jenkinsfile vendored
View file

@ -57,17 +57,18 @@ pipeline {
} }
} }
} }
stage ('ComentToJira') stage ('ComentToJira') {
when { when {
branch 'main' branch 'main'
} }
steps { steps {
echo 'Deploying to Production from main...' sh (echo 'Deploying to Production from main...')
} }
post { post {
always { always {
//jiraSendDeploymentInfo site: '<sitename>.atlassian.net', environmentId: 'us-prod-1', environmentName: 'us-prod-1', environmentType: 'production' //jiraSendDeploymentInfo site: '<sitename>.atlassian.net', environmentId: 'us-prod-1', environmentName: 'us-prod-1', environmentType: 'production'
jiraAddComment comment: 'build ', idOrKey: 'Task1', site: 'https://butenko992.atlassian.net' jiraAddComment comment: 'build ', idOrKey: 'Task1', site: 'https://butenko992.atlassian.net'
}
} }
} }
} }