Skip to content

Commit e2d5acc

Browse files
gabrealMTDK1
authored andcommitted
allow build:rust:doc:release job to fail (paritytech#1812)
1 parent 660852f commit e2d5acc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ build:rust:linux:release: &build
140140

141141
build:rust:doc:release: &build
142142
stage: build
143+
allow_failure: true
143144
artifacts:
144145
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}-doc"
145146
when: on_success
@@ -150,6 +151,7 @@ build:rust:doc:release: &build
150151
tags:
151152
- linux-docker
152153
script:
154+
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
153155
- time cargo doc --release --verbose
154156
- cp -R ./target/doc ./crate-docs
155157
- echo "<meta http-equiv=refresh content=0;url=substrate_service/index.html>" > ./crate-docs/index.html
@@ -231,6 +233,10 @@ publish:s3:doc:
231233
BUCKET: "releases.parity.io"
232234
PREFIX: "substrate-rustdoc"
233235
script:
236+
- test -r ./crate-docs/index.html || (
237+
echo "./crate-docs/index.html not present, build:rust:doc:release job not complete";
238+
exit 1
239+
)
234240
- aws s3 sync --delete --size-only --only-show-errors
235241
./crate-docs/ s3://${BUCKET}/${PREFIX}/
236242
after_script:

0 commit comments

Comments
 (0)