capistrano-deploybot 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano-deploybot/capistrano.rb +8 -2
- data/lib/capistrano-deploybot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7681a63cd918d0df99e11d05c571104614061fe9bd9a24d77909b0ff8c76891
|
4
|
+
data.tar.gz: 64367a40e53aedbcaf9a51708b2ea52925460e2744a4757608ba5bd3451b9861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 688b536e9c4b7fa738a8fa35bf8798b2727386138b40ea88f79db9a56d4ea87107779dfcfb529ca7108f62bf9e1a0451f66e64d0d17caa856d33c7606a3cd092
|
7
|
+
data.tar.gz: 9eb32b67d54606a4f5faaf71020f46538ba6d25313a37847eaafac9d797c9b377656faa8a78915deea5433a7501698b18086820d510e548b7cfa037f16279558
|
@@ -60,15 +60,21 @@ module CapistranoDeploybot
|
|
60
60
|
jira_issues = extract_jira_ids_from_commits(current_revision, previous_revision)
|
61
61
|
return if jira_issues.empty?
|
62
62
|
|
63
|
+
release_tag = ENV['CI_COMMIT_TAG']
|
64
|
+
|
63
65
|
payload = {
|
64
|
-
issues: jira_issues
|
66
|
+
issues: jira_issues,
|
67
|
+
data: { releaseVersion: release_tag }
|
65
68
|
}
|
66
69
|
|
67
70
|
webhooks.each do |webhook|
|
68
71
|
post_to_webhook(webhook, payload)
|
69
72
|
end
|
73
|
+
|
74
|
+
message = "[deploybot] Notified JIRA webhooks with tickets: #{jira_issues.join(', ')}"
|
75
|
+
message << " and release: #{release_tag}" if release_tag
|
70
76
|
|
71
|
-
@env.info(
|
77
|
+
@env.info(message)
|
72
78
|
end
|
73
79
|
|
74
80
|
def deploy_target(rails_env, application_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-deploybot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Baćkowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|