Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
$ uname -r
node { | |
def currentVersion = getCurrentVersion() | |
def newVersion = getNextVersion(currentVersion) | |
def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim() | |
def originalDst = getDst(getDtab()) | |
stage("clone") { | |
git url: gitRepo + '.git', branch: gitBranch | |
} |
/** | |
* This file provides common stuff to be used in the pipelines. | |
* It is important to load it after repo checkout is done: see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#triggering-manual-loading | |
* | |
*/ | |
/** | |
* Dumps some info about the environment. | |
* @return | |
*/ |
<?php | |
namespace AppBundle\Entity; | |
/** | |
* @package AppBundle\Entity | |
* @ORM\Entity() | |
* @ORM\Table() | |
* @ORM\Cache(usage="NONSTRICT_READ_WRITE") | |
*/ |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8