View gist:84a13071226d8e182cfc9361d80a9fff
~/git/backstage$ yarn clean && yarn install | |
yarn run v1.22.1 | |
$ backstage-cli clean && lerna run clean | |
lerna notice cli v3.22.1 | |
lerna info Executing command in 56 packages: "yarn run clean" | |
lerna WARN ECYCLE Dependency cycles detected, you should fix these! | |
lerna WARN ECYCLE @backstage/backend-common -> @backstage/cli -> @backstage/backend-common | |
lerna WARN ECYCLE @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @backstage/core -> @backstage/core-api | |
lerna WARN ECYCLE @backstage/dev-utils -> @backstage/test-utils -> (nested cycle: @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @backstage/core -> @backstage/core-api) -> @backstage/dev-utils | |
lerna WARN ECYCLE @backstage/integration -> (nested cycle: @backstage/dev-utils -> @backstage/test-utils -> (nested cycle: @backstage/core-api -> (nested cycle: @backstage/backend-common -> @backstage/cli -> @backstage/backend-common) -> @back |
View Jenkinsfile
def pass = [ | |
"| Övning | Vikt |\\n| ---------- | :-------------: |\\n| Marklyft | 3 set x 6–8 reps |\\n| chins | 3 set x 8–10 reps |\\n| Militärpress | 3 set x 8–10 reps |", | |
"| Övning | Vikt |\\n| ---------- | :-------------: |\\n| Knäböj | 3 set x 8–10 reps |\\n| Bänkpress | 3 set x 8–10 reps |\\n| Chins | 3 set x 8–10 reps |" | |
] | |
def message = pass[(env.BUILD_ID as Integer) % pass.size()] | |
pipeline { |
View jenkins.log
Started by user Mikael Östberg | |
Obtained Jenkinsfile from git https://github.com/O5ten/kickass-recipes.git | |
Running in Durability level: MAX_SURVIVABILITY | |
[Pipeline] Start of Pipeline | |
[Pipeline] node | |
Running on Jenkins in /var/lib/jenkins/workspace/gustav/kickass | |
[Pipeline] { | |
[Pipeline] stage | |
[Pipeline] { (Declarative: Checkout SCM) | |
[Pipeline] checkout |
View Jenkinsfile
pipeline { | |
parameters { | |
string(name: 'stuffToCheck', defaultValue: 'Test Failure!,Some Other Failure!', desription: 'CSV of stuff to check in the build-log') | |
} | |
stages { | |
stage('The thing'){ | |
steps { | |
echo 'Test Failure!' | |
echo 'Some Other Failure!' | |
} |
View Jenkinsfile
pipeline { | |
agent 'linux' | |
stages { | |
stage('Build ') { | |
steps { | |
sh 'mvn compile' | |
} | |
} | |
stage('Run Tests') { | |
steps { |
View clearSandbox.groovy
import hudson.model.* | |
def isFolder = { it.class.canonicalName == 'com.cloudbees.hudson.plugins.folder.Folder' } | |
def isSandbox = { "sandbox" == it.fullName } | |
def deleteChildren = { | |
it.getItems().collect { item -> | |
def deletedName = item.fullName | |
item.delete() | |
"${deletedName} deleted" |
View folderIconModificator.js
//Put in $JENKINS_HOME/userContent/FolderIconModificator.js | |
//Using the Simple Theme Plugin you then add /userContent/FolderIconModificator.js as a JavaScript URL | |
(function(){ | |
setTimeout(function(){ | |
jQuery('.job-status-').map(function(i, job){ | |
return job.id; | |
}.bind(this)).each(function(i, imageUrl){ | |
jQuery.ajax({ | |
type: "HEAD", | |
async: true, |
View simple-cheese-jenkins-theme.css
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png |
View jenkins-ensure-timeout.groovy
// This script is for Jenkins' Groovy console, and sets a timeout | |
// strategy for any job which doesn't have one. | |
// Based on http://janmaterne.wordpress.com/2010/07/11/how-to-check-if-all-hudson-jobs-have-a-timeout/ | |
// Updated and modified by Sean Flanigan. | |
import hudson.model.* | |
String describe(strat) { | |
if (strat instanceof hudson.plugins.build_timeout.impl.ElasticTimeOutStrategy) { | |
return "Elastic(${strat.timeoutPercentage}, ${strat.numberOfBuilds}, ${strat.timeoutMinutesElasticDefault})" |
NewerOlder