1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Merge pull request #1010 from SAP/sv-docu

Docu generation for GoLang Steps
This commit is contained in:
redehnroV 2019-11-26 13:06:27 +01:00 committed by GitHub
commit 88d75b0d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: