Created
September 26, 2019 14:23
-
-
Save donhenton/7e553659c6191ba5868e22253fff273d to your computer and use it in GitHub Desktop.
another jenkins file
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
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