代码拉取完成,页面将自动刷新
---
services:
- docker
# Building the image which is needed for the integration tests.
# This is done in the sub module.
# TODO: May be we need to think about this.
# TODO: Make our own image and publish this to docker hub.
before_install:
- docker --version
- cd jenkins-client-it-docker
- docker build --no-cache -t jenkins-with-plugins .
- docker run --name jenkins-for-testing -v "$(pwd)/jobs":/var/jenkins_home/jobs -d -p 8080:8080 -p 50000:50000 --env JENKINS_OPTS=--httpPort=8080 jenkins-with-plugins
- cd ..
# We skip the installation step,
# cause everything must run without
# preliminary installation.
install: true
language: java
script:
- mvn -Prun-its,run-docker-its clean verify --batch-mode --fail-at-end
# Make sure we stop the container
# and remove the container independent
# if it is running or not (-f option).
# Finally remove the image which has been created
# before during the before_install part.
after_script:
- docker stop jenkins-for-testing
- docker rm -f -v jenkins-for-testing
- docker rmi -f jenkins-with-plugins
# http://www.webupd8.org/2017/06/why-oracle-java-7-and-6-installers-no.html
# - oraclejdk8 is not supported anymore.
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2/repository
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。