Skip to content

Instantly share code, notes, and snippets.

@echo off
setlocal enableextensions
echo.
::Do a little environment variable shuffling to ensure we have a capital IP_ROOT set in this process
::and not a lower case variant as would be in the case when launched from mstest or vs (a bug)
if defined IP_ROOT (
set IP_ROOT_BACKUP=%IP_ROOT%
set IP_ROOT=
)
Step 2/3 : RUN java -jar C:/ProgramData/Jenkins/plugin-management-cli.jar --plugins maven-plugin:2.7.1 ant:1.3 mesos:0.13.0 git:latest filesystem_scm:experimental docker:1.1.6 ; Write-Host "lastExitCode = $lastExitCode" ; exit $lastExitCode
---> Running in bf57c519b516
No file containing list of plugins to be downloaded entered.
No directory to download plugins entered. Will use default of C:\ProgramData\Jenkins\Reference\Plugins
Using update center https://updates.jenkins.io from JENKINS_UC environment variable
Using experimental update center https://updates.jenkins.io/experimental from JENKINS_UC_EXPERIMENTAL environemnt variable
Using incrementals mirror https://repo.jenkins-ci.org/incrementals from JENKINS_INCREMENTALS_REPO_MIRROR environment variable
No war entered. Will use default of C:\ProgramData\Jenkins\jenkins.war
War bundled plugins:
Sending build context to Docker daemon 15.36kB
Step 1/2 : FROM pester-jenkins-windows
---> 98a07a54cbc5
Step 2/2 : RUN java -jar C:/ProgramData/Jenkins/plugin-management-cli.jar --plugins maven-plugin:2.7.1 ant:1.3 mesos:0.13.0 git:latest filesystem_scm:experimental docker:1.1.6
---> Running in eaff8f4d57e0
No file containing list of plugins to be downloaded entered.
No directory to download plugins entered. Will use default of C:\ProgramData\Jenkins\Reference\Plugins
Using update center https://updates.jenkins.io from JENKINS_UC environment variable
Using experimental update center https://updates.jenkins.io/experimental from JENKINS_UC_EXPERIMENTAL environemnt variable
Using incrementals mirror https://repo.jenkins-ci.org/incrementals from JENKINS_INCREMENTALS_REPO_MIRROR environment variable
# Image publish: MicrosoftWindowsServer
# Image offer: WindowsServer
# Image Sku: 2019-Datacenter-with-Containers
# Init Script:
Set-ExecutionPolicy Unrestricted
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$baseDir = 'c:\azurecsdir'
<buildWrappers>
<ruby-proxy-object>
<ruby-object ruby-class="Jenkins::Tasks::BuildWrapperProxy" pluginid="ci-skip">
<object ruby-class="CiSkipWrapper" pluginid="ci-skip">
<ci__skip ruby-class="NilClass" pluginid="ci-skip"/>
</object>
<pluginid pluginid="ci-skip" ruby-class="String">ci-skip</pluginid>
</ruby-object>
</ruby-proxy-object>
</buildWrappers>
@slide
slide / Jenkinsfile
Created March 27, 2019 17:52
groovy var
def groovyVar = 'test'
pipeline {
agent any
options {
timestamps()
ansiColor('xterm')
stage('TEST STATE') {
steps {
script {
withJenkinsCreds {
sh "python3.7 ./var/testStuff.py"
}
}
}
}
<?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>
@slide
slide / job.groovy
Created September 28, 2018 19:26
This
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.*
@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;
}