davidjsherman / aseba-jenkins Goto Github PK
View Code? Open in Web Editor NEWGlobal library of Jenkins Pipeline scripts for Aseba
License: GNU General Public License v3.0
Global library of Jenkins Pipeline scripts for Aseba
License: GNU General Public License v3.0
We need a reproducible environment on each of the Jenkins agents
Our CMake plugin builds a bash script that handles configuration and compilation, and runs it using a Jenkins sh step.
In recent versions of Jenkins sh steps cannot be run on Windows using Cygwin sshd because of a regression JENKINS-41225 introduced by JENKINS-40734. It appears that an official fix will have to wait for JENKINS-42875.
We should be able to work around this problem by using a powershell step to run the bash script in the MingW32 environment.
The idea is to put the script into a multi-line Powershell variable, using @"โ"@ quotes, wrap it in a call to "C:\msys32\usr\bin\bash.exe -l
, and to run the complete script using invoke-expression
:
pipeline {
agent { label 'windows' }
stages {
stage('Test') {
steps {
script {
script = new String("uname -a\necho 1 2 3\nuname -a\n")
script = '$scr = @"' + "\n" + script + '"@' + "\n"
script += '$wrap = \'C:/msys32/usr/bin/bash.exe -l -c "\' + $scr + \'"\'' + "\n"
powershell script + 'invoke-expression $wrap'
}
}
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.