Skip to content

Instantly share code, notes, and snippets.

sources:
default:
kind: yaml
spec:
file: "https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
key: "$.stable[1]"
@olblak
olblak / unifi.yaml
Created March 27, 2024 08:08
Get latest unifi-controller with Updatecli
name: Get latest unifi controller version
sources:
unifi:
name: Get latest unifi version
kind: xml
spec:
# Using the UniFi Network Application RSS
file: https://community.ui.com/rss/releases/UniFi%20Network%20Application/e6712595-81bb-4829-8e42-9e2630fabcfe
path: "/rss/channel/item[1]/title"
transformers:
---
name: 'deps(dockerfile): bump image "gitpod/workspace-full" digest'
sources:
gitpod/workspace-full:
name: get latest image "gitpod/workspace-full"
kind: dockerimage
spec:
image: gitpod/workspace-full
tagfilter: '\d{4}-\d{2}-\d{2}-\d{2}-\d{2}-\d{2}'
@olblak
olblak / gist:fe1ff4acc9ae4a887392f784d8ccc6da
Last active February 29, 2024 08:19
Update updatecli arg from Dockerfile
name: 'deps: bump updatelci version'
pipelineid: 'updatecli'
scms:
default:
kind: github
spec:
owner: OctopusDeploy
repository: WorkerTools
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
Running `updatecli apply --config /tmp/manifest.yaml`
Created the commit https://github.com/olblak/k8s-lab/commit/36150b75b4785ab431ff72a2461360bcbf4400b6
@olblak
olblak / manifest.yaml
Last active August 14, 2023 10:08
Update policy for updating Golang version from multiple GitHub repositories
Requirement:
* Updatecli >=0.57.0
`updatecli diff --config manifest.yaml --values values.yaml`
AzureVMAgentSSHLauncher: getRemoteSession: Got exception while connecting to remote host ubuntu-jenkinsinfra207600.eastus2.cloudapp.azure.com:22
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:512)
at com.jcraft.jsch.Session.connect(Session.java:183)
at com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher.getRemoteSession(AzureVMAgentSSHLauncher.java:307)
at com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher.connectToSsh(AzureVMAgentSSHLauncher.java:465)
at com.microsoft.azure.vmagent.remote.AzureVMAgentSSHLauncher.launch(AzureVMAgentSSHLauncher.java:115)
at hudson.slaves.SlaveComputer.lambda$_connect$0(SlaveComputer.java:294)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80)
---
title: "[golang base image] Bump version"
sources:
getGolangVersion:
kind: githubRelease
name: Get the latest Golang version
transformers:
- trimPrefix: "go"
spec:
owner: "golang"
@olblak
olblak / gist:6177209f5f63b26a90a5eca9b5e9c60b
Last active March 18, 2021 08:27
Various Download stats 2021-03-17
Debian-stable
https://get.jenkins.io/debian-stable/jenkins_2.277.1_all.deb?stats
{
"Today": 3001,
"Month": 69125,
"Year": 69125,
"Total": 69125
}
Redhat-stable
https://get.jenkins.io/redhat-stable/jenkins-2.277.1-1.1.noarch.rpm?stats
#!/usr/bin/env groovy
/* Delete online nodes matching a pattern */
Jenkins.instance.computers.each { c ->
/*
* Delete all offline nodes
*/
if (c.isOffline()) {