This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer