@@ -93,15 +93,13 @@ workflows:
93
93
when :
94
94
not : << pipeline.parameters.run-schedule >>
95
95
jobs :
96
- - js_build
97
96
- build_server_pdfs :
98
97
filters :
99
98
branches :
100
99
only : /.*/server/*
101
100
- build_api_docs
102
101
- build :
103
102
requires :
104
- - js_build
105
103
- build_server_pdfs
106
104
- build_api_docs
107
105
- minimize-images :
@@ -122,11 +120,7 @@ workflows:
122
120
filters :
123
121
branches :
124
122
only : master
125
- - datadog-synthetics :
126
- context :
127
- - web-ui-datadog
128
- requires :
129
- - deploy
123
+
130
124
131
125
# We run a nightly build to refresh content and build docs-platform
132
126
# at least once every day. Triggered every day at 08:00 AM on master branch
@@ -136,65 +130,6 @@ workflows:
136
130
- trigger-deploy
137
131
138
132
jobs :
139
- js_build : # this job is responsible for building Javascript assets and making them available for the "build" job
140
- executor : # we specify our executor to use the node orb.
141
- name : node/default
142
- tag : ' 14.17.3'
143
- steps :
144
- - *attach_workspace
145
- - checkout # get the code from GitHub
146
- - node/install-packages :
147
- pkg-manager : yarn
148
- cache-version : &npm-cache-version v1 # Gets cache version from project environment variable (E.g v1)
149
- - set-jekyll-basename
150
- - run :
151
- name : " Lint JS assets"
152
- command : yarn lint
153
- - run :
154
- name : " Run tests"
155
- command : yarn test:ci
156
- - run :
157
- name : " Prepare JS assets" # Compile our final, production-ready JavaScript.
158
- command : yarn webpack-prod
159
- - run :
160
- name : " Persist JS assets" # Move our JS+CSS into our workspace.
161
- command : |
162
- set -exu
163
- mkdir -p /tmp/workspace/js
164
- mkdir -p /tmp/workspace/css
165
- mv jekyll/assets/js/* /tmp/workspace/js/
166
- mv jekyll/assets/css/* /tmp/workspace/css/
167
- - run :
168
- name : " Persist package.json" # Move our package.json into our workspace for datadog synthetic tests.
169
- command :
170
- mv package.json /tmp/workspace/package.json
171
- - run :
172
- name : " Persist yarn.lock" # Move our yarn.lock into our workspace for datadog synthetic tests.
173
- command :
174
- mv yarn.lock /tmp/workspace/yarn.lock
175
- - run :
176
179B
- name : " Persist .datadog" # Move our .datadog into our workspace for datadog synthetic tests.
177
- command : |
178
- set -exu
179
- mkdir -p /tmp/workspace/.datadog
180
- mv .datadog/*.synthetics.json /tmp/workspace/.datadog/
181
- - run :
182
- name : " Persist postinstall script" # Move our relevant shell scripts into our workspace for datadog synthetic tests.
183
- command : |
184
- set -exu
185
- mkdir -p /tmp/workspace/scripts
186
- mv scripts/datadog-synthetics-preview.js /tmp/workspace/scripts/datadog-synthetics-preview.js
187
- mv scripts/postinstall.sh /tmp/workspace/scripts/postinstall.sh
188
- mv scripts/process-images.sh /tmp/workspace/scripts/process-images.sh
189
- - persist_to_workspace : # store the built files into the workspace for other jobs.
190
- root : *workspace_root
191
- paths :
192
- - js
193
- - css
194
- - package.json
195
- - yarn.lock
196
- - .datadog
197
- - scripts
198
133
199
134
build_server_pdfs : # this job builds server-related pdf documentation, persisting it to the workspace as well.
200
135
docker :
@@ -272,7 +207,7 @@ jobs:
272
207
- ruby-deps
273
208
- node/install-packages :
274
209
pkg-manager : yarn
275
- cache-version : * npm-cache-version # Gets cache version from project environment variable (E.g v1)
210
+ cache-version : & npm-cache-version # Gets cache version from project environment variable (E.g v1)
276
211
- run :
277
212
name : Run markdownlint with pronto
278
213
command : bundle exec pronto run -f github_pr -c origin/master
@@ -286,10 +221,6 @@ jobs:
286
221
name : Restore Previous Job Assets (Javascript, API docs) to Jekyll directory.
287
222
command : |
288
223
set -exu
289
- mkdir -p /tmp/workspace/js
290
- mkdir -p /tmp/workspace/css
291
- mv -fn /tmp/workspace/js/* jekyll/assets/js/
292
- mv -fn /tmp/workspace/css/* jekyll/assets/css/
293
224
mkdir -p /tmp/workspace/api
294
225
cp -r /tmp/workspace/api/ jekyll/_api/
295
226
# remove unusued /api folder.
@@ -349,21 +280,6 @@ jobs:
349
280
command : |
350
281
ALGOLIA_API_KEY=$ALGOLIA_PRIVATE_KEY bundle exec jekyll algolia --source jekyll --config jekyll/_config.yml
351
282
352
- datadog-synthetics-preview :
353
- executor :
354
- name : node/default
355
- tag : ' 14.17.3'
356
- description : Use Datadog CLI to run synthetic tests on preview S3
357
- working_directory : *workspace_root
358
- steps :
359
- - *attach_workspace
360
- - node/install-packages :
361
- pkg-manager : yarn
362
- cache-version : &npm-cache-version v1 # Gets cache version from project environment variable (E.g v1)
363
- - run :
364
- name : Call Datadog CLI
365
- command : yarn datadog-synthetics-preview
366
-
367
283
deploy :
368
284
docker :
369
285
- image : cibuilds/aws:1.16.185
@@ -379,21 +295,6 @@ jobs:
379
295
steps :
380
296
- trigger-docs-platform-build
381
297
382
- datadog-synthetics :
383
- executor :
384
- name : node/default
385
- tag : ' 14.17.3'
386
- description : Use Datadog CLI to run synthetic tests on production
387
- working_directory : *workspace_root
388
- steps :
389
- - *attach_workspace
390
- - node/install-packages :
391
- pkg-manager : yarn
392
- cache-version : &npm-cache-version v1 # Gets cache version from project environment variable (E.g v1)
393
- - run :
394
- name : Call Datadog CLI
395
- command : yarn datadog-synthetics-prod
396
-
397
298
minimize-images :
398
299
executor :
399
300
name : node/default
0 commit comments