fix check docs stage in jenkins (#6156)

Ignore color information when checking consistency of options.md with
the built binary.
This commit is contained in:
Etan Kissling 2024-03-28 21:37:21 +01:00 committed by GitHub
parent 0fa363e022
commit e677d98119
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

2
ci/Jenkinsfile vendored
View File

@ -1,5 +1,5 @@
/* beacon_chain /* beacon_chain
* Copyright (c) 2019-2023 Status Research & Development GmbH * Copyright (c) 2019-2024 Status Research & Development GmbH
* Licensed and distributed under either of * Licensed and distributed under either of
* * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). * * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
* * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). * * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).

View File

@ -12,6 +12,7 @@ DOC_FILE='docs/the_nimbus_book/src/options.md'
DOC_USAGE=$(sed -n '/Usage/,/^...$/ { /^...$/d; p; }' "${DOC_FILE}") DOC_USAGE=$(sed -n '/Usage/,/^...$/ { /^...$/d; p; }' "${DOC_FILE}")
BIN_USAGE=$( BIN_USAGE=$(
COLUMNS=200 build/nimbus_beacon_node --help | \ COLUMNS=200 build/nimbus_beacon_node --help | \
sed 's/\x1b\[[0-9;]*m//g' | \
sed -n '/Usage/,/Available sub-commands/ { /Available sub-commands/d; p; }' | \ sed -n '/Usage/,/Available sub-commands/ { /Available sub-commands/d; p; }' | \
sed 's/\\x1B\\[[0-9;]*[mG]//g' | \ sed 's/\\x1B\\[[0-9;]*[mG]//g' | \
sed 's/[[:space:]]*$//' sed 's/[[:space:]]*$//'