@elastic/ems-client 7.16.0 → 7.17.2

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.
@@ -14,10 +14,8 @@ export function toAbsoluteUrl(host, path) {
14
14
  if (!host) {
15
15
  return path;
16
16
  }
17
-
18
17
  var hostEndWithSlash = host[host.length - 1] === '/';
19
18
  var pathStartsWithSlash = path[0] === '/';
20
-
21
19
  if (hostEndWithSlash === true && pathStartsWithSlash === true) {
22
20
  return host + path.slice(1);
23
21
  } else if (hostEndWithSlash !== pathStartsWithSlash) {
@@ -1,67 +0,0 @@
1
- ---
2
- ##### GLOBAL METADATA
3
-
4
- - meta:
5
- cluster: kibana-ci
6
-
7
- ##### JOB DEFAULTS
8
-
9
- - job:
10
- project-type: freestyle
11
- logrotate:
12
- daysToKeep: 30
13
- numToKeep: 100
14
- properties:
15
- - github:
16
- url: https://github.com/elastic/ems-client/
17
- - inject:
18
- properties-content: HOME=$JENKINS_HOME
19
- concurrent: false
20
- node: linux && !oraclelinux
21
- scm:
22
- - git:
23
- name: origin
24
- credentials-id: f6c7695a-671e-4f4f-a331-acdce44ff9ba
25
- reference-repo: /var/lib/jenkins/.git-references/ems-client.git
26
- branches:
27
- - ${ghprbActualCommit}
28
- url: git@github.com:elastic/ems-client.git
29
- wrappers:
30
- - ansicolor
31
- - timeout:
32
- type: absolute
33
- timeout: 180
34
- fail: true
35
- - timestamps
36
- - workspace-cleanup
37
- builders:
38
- - shell: |-
39
- #!/usr/local/bin/runbld
40
- set -e
41
- set +x
42
-
43
- NODE_IMG="node:10"
44
-
45
- docker pull $NODE_IMG
46
- docker run --rm -i \
47
- --env GIT_COMMITTER_NAME=test \
48
- --env GIT_COMMITTER_EMAIL=test \
49
- --env HOME=/tmp \
50
- --user=$(id -u):$(id -g) \
51
- --volume $PWD:/app \
52
- --workdir /app \
53
- $NODE_IMG \
54
- bash -c 'npm config set spin false && /opt/yarn*/bin/yarn && yarn test && yarn run build'
55
-
56
- publishers:
57
- - email:
58
- recipients: infra-root+build@elastic.co
59
- - google-cloud-storage:
60
- credentials-id: kibana-ci-gcs-plugin
61
- uploads:
62
- - classic:
63
- file-pattern: integration/**/__diff_output__/**/*
64
- storage-location: gs://kibana-ci-artifacts/jobs/$JOB_NAME/$BUILD_NUMBER
65
- share-publicly: true
66
- upload-for-failed-jobs: true
67
- show-inline: true
@@ -1,18 +0,0 @@
1
- ---
2
- - job:
3
- name: elastic+ems-client+master
4
- display-name: 'elastic / ems-client # master'
5
- description: Testing the ems-client master branch.
6
- parameters:
7
- - string:
8
- name: branch_specifier
9
- default: refs/heads/master
10
- description: the Git branch specifier to build (<branchName>, <tagName>,
11
- <commitId>, etc.)
12
- scm:
13
- - git:
14
- branches:
15
- - ${branch_specifier}
16
- triggers:
17
- - github
18
- - timed: '@daily'
@@ -1,18 +0,0 @@
1
- ---
2
- - job:
3
- name: elastic+ems-client+pull-request
4
- display-name: 'elastic / ems-client # pull-request'
5
- description: Testing of ems-client pull requests
6
- scm:
7
- - git:
8
- branches:
9
- - ${ghprbActualCommit}
10
- refspec: +refs/pull/*:refs/remotes/origin/pr/*
11
- triggers:
12
- - github-pull-request:
13
- org-list:
14
- - elastic
15
- allow-whitelist-orgs-as-admins: true
16
- github-hooks: true
17
- cancel-builds-on-update: true
18
- publishers: []