Skip to content
Snippets Groups Projects
Commit 656081af authored by Lars Bilke's avatar Lars Bilke
Browse files

[Jenkins] Added web link checker job (master only).

parent c9b84ea7
No related branches found
No related tags found
No related merge requests found
...@@ -698,6 +698,26 @@ pipeline { ...@@ -698,6 +698,26 @@ pipeline {
} }
} }
} }
// *************************** Web *************************************
stage('Web') {
agent {
dockerfile {
filename 'Dockerfile.web'
dir 'scripts/docker'
label 'docker'
}
}
when {
beforeAgent true
environment name: 'JOB_NAME', value: 'ufz/ogs/master'
}
steps {
dir('web') {
sh 'hugo'
sh 'broken-links-checker --path ./public --baseUrl https://www.opengeosys.org'
}
}
}
// *************************** Post ************************************ // *************************** Post ************************************
stage('Post') { stage('Post') {
agent { label "master"} agent { label "master"}
......
FROM node
RUN npm install -g @hashicorp/broken-links-checker
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_0.55.6_Linux-64bit.deb \
&& dpkg -i hugo_0.55.6_Linux-64bit.deb && rm hugo_0.55.6_Linux-64bit.deb
RUN apt-get update -y && apt-get install -y --no-install-recommends pandoc \
&& rm -rf /var/lib/apt/lists/*
ENTRYPOINT /bin/bash
{
"excludePatterns": [
"^https?://.*localhost",
"^https?://github.com/ufz/ogs/releases/.*",
"https://jenkins.opengeosys.org/job/ufz/job/ogs-container-maker/job/master/build"
]
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- Development related content such as developer guide, benchmark documentation, tools description, ... will be simple Markdown files in e.g. [/web/content/docs](https://github.com/bilke/ogs/blob/web-hugo/web/content/docs/benchmarks/elliptic/groundwater-flow-neumann.md) - Development related content such as developer guide, benchmark documentation, tools description, ... will be simple Markdown files in e.g. [/web/content/docs](https://github.com/bilke/ogs/blob/web-hugo/web/content/docs/benchmarks/elliptic/groundwater-flow-neumann.md)
- You can preview documentation locally with [Hugo](https://gohugo.io) – a static site generator - You can preview documentation locally with [Hugo](https://gohugo.io) – a static site generator
- You can [mark](https://github.com/bilke/ogs/blob/web-hugo/ProcessLib/GroundwaterFlow/CMakeLists.txt#L80) benchmarks to be automatically and interactively visualized [in the documentation](https://github.com/bilke/ogs/commit/d4fc7d94a3821a6b4483a1d7aeaabd6ee391c449#diff-2f5b1ac2a759aa09b2d3f5cc1ece45ceR108) inside your [browser](https://dev.opengeosys.org/docs/benchmarks/elliptic/groundwater-flow-neumann/#results-and-evaluation) via [vtk.js](https://kitware.github.io/vtk-js/)! 🍻 CURRENTLY DISABLED! - You can [mark](https://github.com/bilke/ogs/blob/web-hugo/ProcessLib/GroundwaterFlow/CMakeLists.txt#L80) benchmarks to be automatically and interactively visualized [in the documentation](https://github.com/bilke/ogs/commit/d4fc7d94a3821a6b4483a1d7aeaabd6ee391c449#diff-2f5b1ac2a759aa09b2d3f5cc1ece45ceR108) inside your [browser](https://opengeosys.org/docs/benchmarks/elliptic/groundwater-flow-neumann/#results-and-evaluation) via [vtk.js](https://kitware.github.io/vtk-js/)! 🍻 CURRENTLY DISABLED!
## Requirements ## Requirements
...@@ -153,3 +153,11 @@ ALGOLIA_WRITE_KEY=XXX node_modules/.bin/hugo-algolia --toml -s ...@@ -153,3 +153,11 @@ ALGOLIA_WRITE_KEY=XXX node_modules/.bin/hugo-algolia --toml -s
- [FontAwesome](https://fontawesome.com) - Icons, see [icon search](https://fontawesome.com/icons?d=gallery) - [FontAwesome](https://fontawesome.com) - Icons, see [icon search](https://fontawesome.com/icons?d=gallery)
- [Slick Carousel](http://kenwheeler.github.io/slick/) & [FancyBox](https://fancyapps.com/fancybox/3/) for image galleries - [Slick Carousel](http://kenwheeler.github.io/slick/) & [FancyBox](https://fancyapps.com/fancybox/3/) for image galleries
- [Algolia](https://github.com/algolia/algoliasearch-client-javascript) for site search - [Algolia](https://github.com/algolia/algoliasearch-client-javascript) for site search
### Link checker
```
npm install -g @hashicorp/broken-links-checker
hugo
broken-links-checker --path ./public --baseUrl https://www.opengeosys.org
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment