This file contains 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
#!groovy | |
import jenkins.model.* | |
import hudson.security.* | |
import jenkins.security.s2m.AdminWhitelistRule | |
import hudson.security.csrf.DefaultCrumbIssuer | |
import jenkins.security.s2m.AdminWhitelistRule | |
def instance = Jenkins.getInstance() | |
This file contains 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 sys | |
import arrow | |
import shelve | |
import os.path | |
from datetime import datetime, timedelta | |
# Name of the file used by PersistentScheduler to store the last run times of periodic tasks. | |
FN_CELERYBEAT = 'celerybeat-schedule' |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |