diff options
author | Eddie Webbinaro <ollitech@gmail.com> | 2020-09-04 17:52:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 17:52:24 +0300 |
commit | ef8d77005e3fce7a8d0ae84920cf91209b20b40c (patch) | |
tree | cc082a0ea62f7bf1c04255880009727ddedd2e1b | |
parent | ea3b8ed46f6f7cb759dbeb2412f1b75ed20b8251 (diff) |
ECOM-99: add jenkinsfile
-rw-r--r-- | Jenkinsfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7842265 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +pipeline { + agent any + + stages { + stage('Hello') { + git 'https://github.com/eddiewebb/hugo-resume.git' + + steps { + echo 'Hello World' + } + post { + always { + jiraSendBuildInfo site: 'se-demo.atlassian.net' + } + } + } + stage('Deploy - Production') { + when { + branch 'master' + } + steps { + echo 'Deploying to Production from master...' + } + post { + always { + jiraSendDeploymentInfo site: 'se-demo.atlassian.net', serviceIds: ['b:YXJpOmNsb3VkOmdyYXBoOjpzZXJ2aWNlLzJlNjQ1Y2Q0LTc4ZmEtMTFlYS04ZjMyLTBhNzdmM2Y0NTMwNC8xNWM3YmZjYy1lZWI2LTExZWEtOWFmZC0xMjhiNDI4MTk0MjQ='], environmentId: 'us-prod-1', environmentName: 'us-prod-1', environmentType: 'production' + } + } +} + } +} |