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
@echo off | |
for /f %%a in ('date /t') do set DAY=%%a | |
if %DAY%==Sun goto :sunday | |
if %DAY%==Mon goto :monday | |
if %DAY%==Tue goto :tuesday | |
if %DAY%==Wed goto :wednesday | |
if %DAY%==Thu goto :thursday | |
if %DAY%==Fri goto :friday |
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
git submodule foreach git reset --hard | |
git submodule foreach --recursive git checkout | |
git submodule foreach git pull origin master | |
git commit -am "Update submodules to latest" | |
git push |
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 hudson.model.User; | |
import hudson.tasks.Mailer; | |
User.getAll().each { user -> | |
println user.toString() + "," + user?.getProperty(Mailer.UserProperty.class).getAddress() | |
} | |
println "" |
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
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
println "digraph test {" | |
plugins.each { | |
def plugin = it.getShortName() | |
println "\"${plugin}\";" | |
def deps = it.getDependencies() | |
deps.each { | |
def s = it.shortName | |
println "\"${plugin}\" -> \"${s}\";" | |
} |
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
def plugins = jenkins.model.Jenkins.instance.getPluginManager().getPlugins() | |
plugins.each { | |
println "${it.getShortName()} (${it.getVersion()}) => ${it.getDependencies()}" | |
} |
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
taskkill /im UnrealBuildTool.exe /f /t | |
taskkill /im msbuild.exe /f /t | |
taskkill /im cl.exe /f /t | |
taskkill /im cl-filter.exe /f /t |
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
stage("Information") { | |
currentBuild.displayName = "#${BUILD_NUMBER} - ${params.JobToClean}" | |
currentBuild.description = "CleanFailures: ${params.CleanFailures}\nCleanAborts: ${params.CleanAborts}" | |
} | |
def buildsToClean = [] | |
stage("Search") { | |
def job = Jenkins.instance.getItem(params.JobToClean) | |
job.getBuilds().each { |
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
@Echo off | |
for /F %%I in ('curl https://myexternalip.com/raw') do set ExtIP=%%I | |
Echo External IP is : %ExtIP% |
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
taskkill /f /IM explorer.exe | |
start explorer.exe | |
exit |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] | |
"LongPathsEnabled"=dword:00000001 |
NewerOlder