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
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
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
// dev: andrewroberts.net | |
// Replace this with ID of your template document. | |
var TEMPLATE_ID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
// var TEMPLATE_ID = '1wtGEp27HNEVwImeh2as7bRNw-tO4HkwPGcAsTrSNTPc' // Demo template | |
// Demo script - http://bit.ly/createPDF | |
// You can specify a name for the new PDF file here, or leave empty to use the | |
// name of the template. |
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
@NonCPS | |
def getTimestamp(build) { | |
def buildTimeStampFormat = new java.text.SimpleDateFormat('yyyy-MM-dd_HH-mm-ss') | |
buildTimeStampFormat.timeZone = java.util.TimeZone.default | |
return buildTimeStampFormat.format(build.timestamp.time) | |
} |
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
checkout perforce(credential: 'XCAESFASFSDGKLJSDGLKJSDGSDGSG', | |
populate: syncOnly(force: false, have: true, modtime: false, | |
parallel: [enable: true, minbytes: '1024', minfiles: '1', threads: '4'], | |
pin: '', quiet: true, revert: true), | |
workspace: manualSpec(charset: 'none', name: "jenkins-${env.NODE_NAME}-${env.JOB_NAME}", | |
pinHost: false, | |
spec: clientSpec(allwrite: true, backup: false, clobber: false, compress: false, line: 'UNIX', locked: false, modtime: false, rmdir: false, serverID: '', | |
streamName: "//streamsdepot/${params.STREAM_NAME}", type: 'WRITABLE', view: ''))) |
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
[WARNING] Rule 5: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message: | |
Failed while enforcing RequireUpperBoundDeps. The error(s) are [ | |
Require upper bound dependencies error for org.slf4j:slf4j-api:1.7.7 paths to dependency are: | |
+-org.jenkins-ci.plugins:publish-over-ftp:1.14-SNAPSHOT | |
+-org.slf4j:slf4j-api:1.7.7 | |
and | |
+-org.jenkins-ci.plugins:publish-over-ftp:1.14-SNAPSHOT | |
+-org.slf4j:log4j-over-slf4j:1.7.7 | |
+-org.slf4j:slf4j-api:1.7.7 | |
and |
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
@NonCPS | |
def getLastJobInfo(build) { | |
def res = null | |
try { | |
if(build.previousBuild != null) { | |
def resp = httpRequest(quiet: true, url: "http://SERVER/jenkins/job/SOMEJOB/job/Pipeline/${build.previousBuild.id}/wfapi/describe") | |
res = readJSON(text: resp.content) | |
} | |
} catch(e) { | |
res = null |
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
@NonCPS | |
def createBody(build, env, changeSets, builds, failedBuilds) { | |
def text = ''' | |
<html> | |
<style> | |
BODY, TABLE, TD, TH, P { | |
font-family:Verdana,Helvetica,sans serif; | |
font-size:11px; | |
color:black; | |
} |
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.plugins.git.* | |
import hudson.model.* | |
import jenkins.model.* | |
import jenkins.util.SystemProperties | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import org.csanchez.jenkins.plugins.kubernetes.* | |
import org.csanchez.jenkins.plugins.* |
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
<?jelly escape-by-default='true'?> | |
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form"> | |
<f:section title="Support Bundle Anonymization"> | |
<f:entry field="enabled" title="Anonymize support bundle contents"> | |
<f:checkbox /> | |
</f:entry> | |
</f:section> | |
</j:jelly> |
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
stage('TEST STATE') { | |
steps { | |
script { | |
withJenkinsCreds { | |
sh "python3.7 ./var/testStuff.py" | |
} | |
} | |
} | |
} |
OlderNewer