node {
stage('Checkout') {
checkout scm
}
...
stage('Unit-Tests') {
sh "mvn test"
}
archiveArtifacts '**/target/*.jar'
junit '*/target/surefire-reports/TEST*.xml'
@Library('holisticon-build-library')
def utils = new de.holisticon.ci.jenkins.Utils()
node {
utils.waitForAppToBeReady('localhost:8080')
}
- hosts: webservers
vars:
http_port: 80
max_clients: 200
remote_user: root
tasks:
- name: ensure apache is at the latest version
apt: pkg=apache2-mpm-worker state=latest
- name: ensure apache is running
service: name=apache2 state=started
sshagent(['e96eb307-86ff-4858-82bb-cdc20bf1e4b4']) {
stage('Deploy') {
dir("ansible") {
// Install / update dependencies
sh "ansible-galaxy install -r requirements.yml -f"
// Execute playbook
sh "ansible-playbook cddemo.yml --extra-vars 'app_version=${appVersion}
path_to_artifact=../angular-spring-boot-webapp/target/ng-spring-boot.jar
--ansible_ssh_port=\${ANSIBLE_PORT}'"
}
}
}
┌───────────────┬───────────────────────────────────────┐
│ │ Insecure Defaults Allow MITM Over TLS │
├───────────────┼───────────────────────────────────────┤
│ Name │ engine.io-client │
├───────────────┼───────────────────────────────────────┤
│ Installed │ 1.5.4 │
├───────────────┼───────────────────────────────────────┤
│ Vulnerable │ <= 1.6.8 │
├───────────────┼───────────────────────────────────────┤
│ Patched │ >= 1.6.9 │
├───────────────┼───────────────────────────────────────┤
│ More Info │ https://nodesecurity.io/advisories/99 │
└───────────────┴───────────────────────────────────────┘
[ERROR] Failed to execute goal org.owasp:dependency-check-maven:1.4.0:check (default) ...
[ERROR]
[ERROR] Dependency-Check Failure:
[ERROR] One or more dependencies were identified with vulnerabilities
that have a CVSS score greater then '5.0':
[ERROR] commons-httpclient-3.1.jar: CVE-2014-3577
[ERROR] mysql-connector-java-5.1.37.jar: CVE-2014-0001, CVE-2013-2378, ....
[ERROR] tomcat-embed-core-8.0.33.jar: CVE-2016-3092, CVE-2013-2185, CVE-2002-0493
There is no one-size-fits-all solution to the complex problem of implementing a deployment pipeline.” Continuous Delivery, J. Humble, D. Farley