mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Merge pull request #1010 from SAP/sv-docu
Docu generation for GoLang Steps
This commit is contained in:
commit
88d75b0d7c
@ -53,9 +53,12 @@ jobs:
|
|||||||
- stage: Docs
|
- stage: Docs
|
||||||
name: Create Documentation
|
name: Create Documentation
|
||||||
install: docker pull squidfunk/mkdocs-material:3.0.4
|
install: docker pull squidfunk/mkdocs-material:3.0.4
|
||||||
before_script: documentation/bin/createDocu.sh
|
before_script:
|
||||||
|
- documentation/bin/createDocu.sh
|
||||||
|
- docker run -u `id -u`:`id -g` --rm -it -e GOCACHE=/tmp -v ${TRAVIS_BUILD_DIR}:/docu-gen golang sh -c "cd /docu-gen && go get github.com/SAP/jenkins-library/... && go run /docu-gen/pkg/generator/step-metadata.go --docuDir=/docu-gen/documentation/docs/steps/ --docuGen=true "
|
||||||
script:
|
script:
|
||||||
- docker run -u `id -u`:`id -g` --rm -it -v ${TRAVIS_BUILD_DIR}/documentation:/docs squidfunk/mkdocs-material:3.0.4 build --clean --strict
|
- docker run -u `id -u`:`id -g` --rm -it -v ${TRAVIS_BUILD_DIR}/documentation:/docs squidfunk/mkdocs-material:3.0.4 build --clean --strict
|
||||||
|
after_script:
|
||||||
- mkdir -p documentation/docs-gen/misc
|
- mkdir -p documentation/docs-gen/misc
|
||||||
- cp target/docuMetaData.json documentation/docs-gen/misc
|
- cp target/docuMetaData.json documentation/docs-gen/misc
|
||||||
deploy:
|
deploy:
|
||||||
|
Loading…
Reference in New Issue
Block a user