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

[web] Moved latest download up and fixed Jenkins link.

Jenkins link should update on each build but somehow netlify does
not invalidate the cache for it... Only manually deleting the cache
worked so I temporarily set
https://jenkins.opengeosys.org/job/ufz/job/ogs/job/master/lastSuccessfulBuild/artifact/
as the download link.
parent d83e6f92
No related branches found
No related tags found
No related merge requests found
...@@ -8,11 +8,36 @@ ...@@ -8,11 +8,36 @@
{{ $latest := getJSON $urlPre "/repos/ufz/ogs/releases/latest" }} {{ $latest := getJSON $urlPre "/repos/ufz/ogs/releases/latest" }}
{{ $statuses := getJSON $urlPre "/repos/ufz/ogs/commits/" $latest.tag_name "/statuses" }} {{ $statuses := getJSON $urlPre "/repos/ufz/ogs/commits/" $latest.tag_name "/statuses" }}
<h2 id="latest"><i class="far fa-wrench"></i> Latest development version</h2>
{{ $head := getJSON $urlPre "/repos/ufz/ogs/git/refs/heads/master" }}
{{ $head_commit := getJSON $urlPre "/repos/ufz/ogs/commits/" $head.object.sha }}
{{ $head_statuses := getJSON $urlPre "/repos/ufz/ogs/commits/" $head.object.sha "/statuses" }}
<p>
Here you can find the latest version of OpenGeoSys. But be warned: although this version was
successfully tested by the continuous integration system it may be unstable or incomplete...
</p>
<div class="note">
<h3><i class="far fa-download"></i> Download</h3>
<!-- <p>{{ dateFormat "Monday, Jan 2, 2006" $head_commit.commit.author.date }} by -->
<!-- <a href="{{$head_commit.author.html_url }}">{{ $head_commit.commit.author.name }}</a>: -->
<!-- </p> -->
<!-- <p class="max-w-md"><i>{{ $head_commit.commit.message }}</i> <a href="{{ $head_commit.html_url }}"><i class="fab fa-github"></i> GitHub Commit Link</a></p> -->
<p>
<!-- {{ range first 1 (where $head_statuses ".context" "continuous-integration/jenkins/branch") }} -->
Downloads for the current version of OpenGeoSys can be found on our continuous integration system:
</p>
<p>
<a href="https://jenkins.opengeosys.org/job/ufz/job/ogs/job/master/lastSuccessfulBuild/artifact/build"><i class="fas fa-arrow-right"></i> Latest successful Jenkins Build with Downloads</a> <span class="text-sm text-grey-dark"></span>
<!-- {{ end }} -->
</p>
</div>
<div class="note float-right border-r-4 border-l-0 ml-2"> <div class="note float-right border-r-4 border-l-0 ml-2">
<h3>Content</h3> <h3>Content</h3>
<ul class="list-reset text-sm"> <ul class="list-reset text-sm">
<li><a href="#current">Current Release: {{ $latest.tag_name }}</a></li> <li><a href="#current">Current Release: {{ $latest.tag_name }}</a></li>
<li><a href="#latest">Latest development version</a></li>
<li><a href="#old">Older releases & OpenGeoSys-5</a></li> <li><a href="#old">Older releases & OpenGeoSys-5</a></li>
</ul> </ul>
<h3 class="border-b"><i class="far fa-download"></i> Downloads</h3> <h3 class="border-b"><i class="far fa-download"></i> Downloads</h3>
...@@ -44,29 +69,6 @@ ...@@ -44,29 +69,6 @@
{{ $latest.body | markdownify }} {{ $latest.body | markdownify }}
</div> </div>
<h2 id="latest"><i class="far fa-wrench"></i> Latest development version</h2>
{{ $head := getJSON $urlPre "/repos/ufz/ogs/git/refs/heads/master" }}
{{ $head_commit := getJSON $urlPre "/repos/ufz/ogs/commits/" $head.object.sha }}
{{ $head_statuses := getJSON $urlPre "/repos/ufz/ogs/commits/" $head.object.sha "/statuses" }}
<p>
Here you can find the latest version of OpenGeoSys. But be warned: although this version was
successfully tested by the continuous integration system it may be unstable or incomplete...
</p>
<div class="note">
<h3>Commit Info</h3>
<p>{{ dateFormat "Monday, Jan 2, 2006" $head_commit.commit.author.date }} by
<a href="{{$head_commit.author.html_url }}">{{ $head_commit.commit.author.name }}</a>:
</p>
<p class="max-w-md"><i>{{ $head_commit.commit.message }}</i> <a href="{{ $head_commit.html_url }}"><i class="fab fa-github"></i> GitHub Commit Link</a></p>
<p>
{{ range first 1 (where $head_statuses ".context" "continuous-integration/jenkins/branch") }}
<a href="{{ .target_url }}"><i class="fab fa-jenkins"></i> Jenkins Build with Downloads</a> <span class="text-sm text-grey-dark">(Select the <i>Artifacts</i>-tab!)</span>
{{ end }}
</p>
</div>
<h2 id="old">Older releases</h2> <h2 id="old">Older releases</h2>
<ul> <ul>
{{ range $index, $element := $releases }} {{ range $index, $element := $releases }}
......
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