Skip to content

Instantly share code, notes, and snippets.

View onemore5s's full-sized avatar
🌈
gogogo

onemore onemore5s

🌈
gogogo
View GitHub Profile
@jonico
jonico / Jenkinsfile
Last active July 13, 2026 14:37
Example for a full blown Jenkins pipeline script with CodeQL analysis steps, multiple stages, Kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, …
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8
{"lastUpload":"2020-04-30T04:17:22.471Z","extensionVersion":"v3.4.3"}
@gdamjan
gdamjan / ssl-check.py
Last active July 18, 2026 16:59
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket
@merikan
merikan / Jenkinsfile
Last active August 16, 2026 03:37
Some Jenkinsfile examples
Some Jenkinsfile examples