Skip to content

Commit

Permalink
Generate checluster references tables (#1803)
Browse files Browse the repository at this point in the history
* Generate checluster references tables

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

Co-authored-by: Michal Maléř <48474054+MichalMaler@users.noreply.github.com>
  • Loading branch information
tolusha and MichalMaler committed Feb 15, 2021
1 parent f840dfe commit b553934
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 139 deletions.
17 changes: 9 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {

agent {
kubernetes {
label 'che-docs-pod'
Expand Down Expand Up @@ -30,25 +30,25 @@ spec:
"""
}
}

environment {
PROJECT_NAME = "che"
PROJECT_BOT_NAME = "CHE Bot"
CI = true
}
triggers { pollSCM('H/10 * * * *')

triggers { pollSCM('H/10 * * * *')

}

options {
buildDiscarder(logRotator(numToKeepStr: '5'))
checkoutToSubdirectory('che-docs')
timeout(time: 15, unit: 'MINUTES')
}

stages {

stage('Checkout www repo (master)') {
when {
branch 'master'
Expand Down Expand Up @@ -76,6 +76,7 @@ spec:
container('che-docs') {
dir('che-docs') {
sh './tools/environment_docs_gen.sh'
sh './tools/checluster_docs_gen.sh'
sh 'CI=true antora generate antora-playbook.yml --stacktrace'
}
}
Expand Down
8 changes: 7 additions & 1 deletion devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,18 @@ components:
type: chePlugin

commands:
- name: Generate reference tables
- name: Generate reference tables for environment variables
actions:
- type: exec
component: che-docs
workdir: /projects/che-docs
command: bash tools/environment_docs_gen.sh
- name: Generate reference tables for CheCluster
actions:
- type: exec
component: che-docs
workdir: /projects/che-docs
command: bash tools/checluster_docs_gen.sh
- name: Start preview server
actions:
- type: exec
Expand Down
Loading

0 comments on commit b553934

Please sign in to comment.