Skip to content

Instantly share code, notes, and snippets.

/*
Script #1 - Tell you the status of your instances
Provides clear output that informs the user if their Jenkins(OC, masters, etc) are ready
to consume the new licenses. A user may run this script multiple times over the course of the
upgrade process (ie to see if the system needs to be updated, to verify its ready to be updated,
and to verify that the update has been completed successfully).
*/
// script version
def _version = "d6a8ab2"
/*
Script #1 - Tell you the status of your instances
Provides clear output that informs the user if their Jenkins(OC, masters, etc) are ready
to consume the new licenses. A user may run this script multiple times over the course of the
upgrade process (ie to see if the system needs to be updated, to verify its ready to be updated,
and to verify that the update has been completed successfully).
*/
// script version
def _version = "d6a8ab2"
/*
Script #1 - Tell you the status of your instances
Provides clear output that informs the user if their Jenkins(OC, masters, etc) are ready
to consume the new licenses. A user may run this script multiple times over the course of the
upgrade process (ie to see if the system needs to be updated, to verify its ready to be updated,
and to verify that the update has been completed successfully).
*/
// script version
def _version = "d6a8ab2"
import hudson.license.LicenseManager
import hudson.security.ACL
import jenkins.model.Jenkins
import jenkins.util.groovy.GroovyHookScript
import java.io.File
import java.util.logging.Logger
Logger logger = Logger.getLogger("init.init_01_launch_auto_config.groovy")
ACL.impersonate(ACL.SYSTEM, new Runnable() {
@Override
public void run() {
@bvcelari
bvcelari / yaml_split.py
Created October 28, 2020 12:10
jcasc split
file1 = open('test-suite-casc-yaml.txt', 'r')
filename = ''
filecontent = []
line = file1.readline()
while True:
# if line is empty
# end of file is reached
if not line:
break