pipeline { agent none //other stages stage("Stage ok") { agent any when { expression {
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
#!/bin/sh | |
sudo curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \ | |
&& sudo chmod +x minikube && sudo cp minikube /usr/local/bin && rm minikube && minikube version |
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
== Install | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --keyserver-options http-proxy=localhost:3128 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-get install docker-ce | |
== Proxy config | |
sudo mkdir -p /etc/systemd/system/docker.service.d | |
sudo gedit /etc/systemd/system/docker.service.d/http-proxy.conf | |
[Service] |
-
Change auto popup config at
Tools → Options → Editor → Code completion
-
Install autosave plugin;
-
Enable terminal at
Window → IDE tools → terminal
; -
Install git toolbar;
-
Install Dracula theme;
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
#!/usr/bin/env groovy | |
/** | |
* This shared lib depends on emailExt plugin | |
* Usage: | |
post { //after build | |
changed { //if status changed then send email | |
sendEmail('dest1@mail.com, dest2@mail.com') | |
} |
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
#!/usr/bin/env groovy | |
/** | |
* Fails the pipeline if project quality doesn't meet the configured quality profile (see https://docs.sonarqube.org/display/SONAR/Quality+Gates AND https://docs.sonarqube.org/display/SONAR/Quality+Profiles). | |
* This DSL function must be invoked after the quality analisys has been published. Example: | |
* | |
* stage('sonar') { | |
* steps { | |
* withSonarQubeEnv('sonar') { //there must be a tool named 'sonar' configured on Jenkins (/jenkins/configureTools) | |
* sh 'mvn sonar:sonar' //publish project quality on sonar |
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <systemPropertyVariables> <arquillianContainer>${arquillian.container}</arquillianContainer> </systemPropertyVariables> </configuration>
tested against this facelets file.
import org.jsoup.Jsoup; import org.jsoup.nodes.Document; Document.OutputSettings outputSettings = new Document.OutputSettings(); outputSettings.prettyPrint(true) .charset("UTF-8") .indentAmount(4)
import java.io.Serializable;
import java.util.Collection;
import java.util.Map;
/**
* Created by rafael-pestano on 26/06/2015. assertions utils
*
*/