Embed a Jenkins Minute in the home page for a little more interesting stuff

Also fleshing out the doc page a bit more, need to figure out what I'm going to
do there.
This commit is contained in:
R. Tyler Croy 2017-12-22 11:34:56 -08:00
parent 84a10fd0c0
commit 018b7a0828
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 67 additions and 55 deletions

View File

@ -3,86 +3,95 @@
{
:name => 'Ubuntu 16.04',
:labels => ['ubuntu', 'linux', 'docker'],
:capabilities => '',
:capabilities => ['Docker-enabled'],
},
{
:name => 'FreeBSD 11.1',
:labels => ['freebsd', 'bsd'],
:capabilities => '',
:capabilities => [],
},
]
.container
.col-md-10
.row
%h2
Overview
.container
.row
%p
Code Valet is powered by
%a{:href => 'https://jenkins.io'}
Jenkins® 2
with
%a{:href => 'https://jenkins.io/doc/book/pipeline'}
Jenkins Pipeline.
.col-lg-12
%h2
Overview
%p
Code Valet is powered by
%a{:href => 'https://jenkins.io'}
Jenkins® 2
with
%a{:href => 'https://jenkins.io/doc/book/pipeline'}
Jenkins Pipeline.
.row
%h3
Features enabled
:markdown
The current list of features enabled on Code Valet, which can be
used in a `Jenkinsfile` are:
.col-lg-12
%h3
Features enabled
%p
:markdown
The current list of features enabled on Code Valet, which can be
used in a `Jenkinsfile` are:
* XML (JUnit) test reporting integration via the `junit` step.
* Embedded status badges, such as: [![Build Status](https://codevalet.io/u/codevalet/job/CodeValet/job/codevalet/job/master/badge/icon)](https://codevalet.io/u/codevalet/blue/organizations/jenkins/CodeValet%2Fcodevalet/activity)
* XML (JUnit) test reporting integration via the `junit` step.
* Embedded status badges, such as: [![Build Status](https://codevalet.codevalet.io/job/codevalet/job/master/badge/icon)](https://codevalet.codevalet.io/job/codevalet/job/master/)
.row
%h2
Platforms
.col-lg-12
%h2
Platforms
.container
.row
%p
Code Valet provides ephemeral execution environments, dedicated to
each user or organization. This provides the best trade-off between
performance and reliability using the tools currently available.
%p
%table.table
%thead
%p
Code Valet provides ephemeral execution environments, dedicated to
each user or organization. This provides the best trade-off between
performance and reliability using the tools currently available.
%p
%table.table
%thead
%tr
%th
Platform
%th
Capabilities
%th
Example
%code
Jenkinsfile
%tbody
- platforms.each do |p|
%tr
%th
Platform
%th
Capabilities
%th
Example
%tbody
- platforms.each do |p|
%tr
%td
%td
%p
%strong= p[:name]
%p
Labels:
%ul
- p[:labels].each do |label|
%li
%code= label
%td
= p[:capabilities]
%td
%pre
%code
:plain
pipeline {
agent { label '#{p[:labels].first}' }
stages {
stage('Build') {
steps {
sh 'uname -a'
sh 'cat /etc/issue'
}
%td
- p[:capabilities].each do |cap|
%p
= cap
%td
%pre
%code
:plain
pipeline {
agent { label '#{p[:labels].first}' }
stages {
stage('Build') {
steps {
sh 'uname -a'
sh 'cat /etc/issue'
}
}
}
}

View File

@ -38,8 +38,11 @@
%a.dropdown-item{:href => "https://#{monkey}.codevalet.io/blue"}
= monkey
.row
.col-md-12
%img.img-fluid{:src => '/images/create-new-pipeline.png'}
.col-lg-12.text-center
%iframe{:width => 800, :height => 400, :frameborder => 0, :gesture => :media,
:allow => 'encrypted-media', :allowfullscreen => '',
:src => 'https://www.youtube-nocookie.com/embed/FhDomw6BaHU'}
%img.img-fluid{:src => '/images/create-new-pipeline.png'}
.row
.col-md-12