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
#include "testgroupwidget.h" | |
#include "testgroup.h" | |
#include <QFileDialog> | |
#include <QInputDialog> | |
#include <QMessageBox> | |
#include <QMenu> | |
TestGroupWidget::TestGroupWidget(QWidget *parent) : QTreeWidget(parent) |
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
def engine = new groovy.text.SimpleTemplateEngine() | |
def blOpts = readYaml text:''' | |
cmakeOpts: "-DCMAKE_INSTALL_PREFIX=${installDir}/${pkg.toLowerCase()} -DCMAKE_BUILD_TYPE=${pkg.toLowerCase()}" | |
package: | |
- "Debug" | |
- "Release" | |
''' | |
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
def call() { | |
node("local") { | |
checkout scm | |
def jenkinsfiles = findFiles glob: "**/Jenkinsfile", excludes: "Jenkinsfile" | |
builds = [:] | |
jenkinsfiles.each { it -> | |
job = load jenkinsfile.path | |
def jdir = jenkinsfile.path.take(jenkinsfile.path.lastIndexOf("/")) | |
builds[jdir] = { | |
stage(jdir) { |
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 jenkins.model.* | |
for (node in Jenkins.get().nodes) { | |
oldLabelName = node.labelString | |
if (oldLabelName.contains('WIN2012')) { | |
newLabelName = oldLabelName + " " + "WIN2012.X" | |
node.setLabelString(newLabelName) | |
} | |
} |
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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>maven.jenkins-ci.org</id> | |
<username>USERNAME</username> | |
<password>PASSWORD</password> | |
</server> |
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
function Export-Variables($file) { | |
Get-Content $file | Select-String -Pattern "^export"| ForEach-Object { | |
$array= $_[0].ToString().split("=") | |
$array[0] = $array[0].Replace("export","").Trim() | |
if($array[1].Contains('${')) { | |
$array[1] = $ExecutionContext.InvokeCommand.ExpandString($array[1].Replace('${', '${env:')) | |
} elseif($array[1] -match '\$\(([^)]*)\)(.*)') { | |
$command = $Matches[1].Trim() | |
$rest = $Matches[2] | |
if($command.StartsWith('realpath')) { |
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
def SERVICE = "" | |
pipeline { | |
agent any | |
stages { | |
stage("Web UI - Choose service") { | |
steps { | |
script { | |
def service = input( | |
message: 'Select the packages you\'d like to deploy', |
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
New-Item -ItemType Directory -Path $('{0}/{1}' -f $env:WARDIR,$env:VERSION) | |
New-Item -ItemType Directory -Path $env:WAR_WEBDIR | |
$sha256 = (Get-FileHash -Algorithm SHA256 -Path $_.FullName).Hash.ToString().ToLower() | |
Set-Content -Path $env:WAR_SHASUM -Value $sha256 | |
Write-Host $sha256 | |
Copy-Item $env:WAR $('{0}/{1}/{2}.war' -f $env:WARDIR,$env:VERSION,$ARTIFACTNAME) | |
Copy-Item $env:WAR_SHASUM $('{0}/{1}' -f $env:WARDIR,$env:VERSION) |
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
# Init Script: | |
Set-ExecutionPolicy Unrestricted | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$baseDir = 'c:\azurecsdir' | |
$JDKUrl = 'https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.3%2B7/OpenJDK11U-jre_x64_windows_hotspot_11.0.3_7.zip' | |
$destinationJDKZipPath = "$baseDir\adoptOpenJDK.zip" | |
$javaHome = "$baseDir\jdk-11.0.3+7-jre" |
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
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 5d97e16a0f1d | |
No .txt file containing list of plugins to be downloaded entered. | |
No .yaml 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 environment 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 |