brpm_module_demo 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/config.yml +1 -1
- data/lib/integrations/brpm/process_event_handler_event.rb +8 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGYwMzZmNmQwYzk3ZTM1ZmE3ZjRiNTNhMTJiNjg3YTUyY2U2MmNlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWU4NzUyYTcwNGQ4YTYxM2Q4MWNiZmEwOGI1YzRkZjZiMTZjNDA5OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmJiYmY0NmQzZWVlMGI1NjE4NTk1Y2YyYTAyNWVmZGU2MzNiZjJlYWQ2ZGI1
|
10
|
+
ZmQ0NGYzMWQ5ZTFlYWYwMzQ4N2U2NzVkNjYwNDEzMzc0N2RmYTE1OTM1ZWU4
|
11
|
+
NzBiYzhmZjQxODNlY2E2NGYzNTU3ZGIxYjM0YjUxNTkzMDRkMzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTk0MzZiZTk5MTRiODg0YTRiODY2OTljZjNiZmZmODFlNWFlOWJmODczNGE1
|
14
|
+
NTkyMmFjY2E4ZTAyYmQyZDJiYWNiMjJlYjg0Nzg4MjQwNWE3ZDhkNGY5ZmQ1
|
15
|
+
ZWY3ZTBkMzIwODAyYjg3ZjA0MzA2YWQ2MDJjZWVhNmI1YzU0NmQ=
|
data/config.yml
CHANGED
@@ -32,7 +32,7 @@ def process_step_event(event)
|
|
32
32
|
BrpmAuto.log "Step '#{step_new_state["name"][0]}' moved from state '#{step_old_state["aasm-state"][0]}' to state '#{step_new_state["aasm-state"][0]}'"
|
33
33
|
|
34
34
|
if step_new_state["aasm-state"][0] == "complete" or step_new_state["aasm-state"][0] == "problem"
|
35
|
-
if step_new_state["property-values"][0].has_key?("add-logs-to-request-params") and step_new_state["property-values"][0]["add-logs-to-request-params"] == "true"
|
35
|
+
if step_new_state["property-values"][0].has_key?("add-logs-to-request-params") and step_new_state["property-values"][0]["add-logs-to-request-params"][0] == "true"
|
36
36
|
add_logs_to_ticket_in_servicenow(step_new_state)
|
37
37
|
end
|
38
38
|
end
|
@@ -245,13 +245,15 @@ end
|
|
245
245
|
def add_logs_to_ticket_in_servicenow(step)
|
246
246
|
step_with_details = @brpm_rest_client.get_step_by_id(step["id"][0]["content"])
|
247
247
|
|
248
|
-
request_params = RequestParams.new_for_request("#{ENV["BRPM_HOME"]}/automation_results", step_with_details["installed_component"]["app"]["name"],
|
248
|
+
request_params = RequestParams.new_for_request("#{ENV["BRPM_HOME"]}/automation_results", step_with_details["installed_component"]["app"]["name"], step_with_details["request"]["id"].to_i + 1000)
|
249
249
|
|
250
|
-
|
251
|
-
|
250
|
+
if request_params["change_request_id"] and request_params["logs"]
|
251
|
+
params = get_default_params_for_servicenow
|
252
|
+
params["change_request_id"] = request_params["change_request_id"]
|
252
253
|
|
253
|
-
|
254
|
+
params["fields"] = { "u_string_brpm_log_note" => request_params["logs"].map { |k, v| "#{k}:\n#{v}"} }
|
254
255
|
|
255
|
-
|
256
|
+
BrpmScriptExecutor.execute_automation_script("brpm_module_servicenow", "update_change_request", params)
|
257
|
+
end
|
256
258
|
end
|
257
259
|
#################################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brpm_module_demo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niek Bartholomeus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brpm_content_framework
|