Skip to content

Instantly share code, notes, and snippets.

@donhenton
Created September 26, 2019 14:23
Show Gist options
  • Save donhenton/7e553659c6191ba5868e22253fff273d to your computer and use it in GitHub Desktop.
Save donhenton/7e553659c6191ba5868e22253fff273d to your computer and use it in GitHub Desktop.
another jenkins file
pipeline {
environment {
registry = "my-registry:5000"
GIT_SSL_NO_VERIFY = 1
NODE_TLS_REJECT_UNAUTHORIZED=0
dockerImage = ''
}
agent {
docker {
image 'donhenton/maven-docker'
}
}
stages {
stage('cloning') {
steps {
sh 'rm -rf spring-boot-birt'
sh 'git config --global http.sslVerify "false"'
sh 'git clone https://github.com/donhenton/spring-boot-birt.git'
}
}
stage('cloning webjar') {
steps {
sh 'rm -rf webjar-app'
sh 'npm config set strict-ssl false'
sh 'git config --global http.sslVerify "false"'
sh 'git clone https://github.com/donhenton/webjar-app.git'
sh 'cd webjar-app && mvn clean package -DskipTests -Preact -Dmaven.wagon.http.ssl.insecure=true'
sh 'cd ..'
}
}
https://github.com/donhenton/webjar-app.git
stage('Building') {
steps{
sh 'cd spring-boot-birt && mvn clean package -DskipTests -Preact -Dmaven.wagon.http.ssl.insecure=true'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment