diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..4f76d23d --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,41 @@ +# Java Maven CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-java/ for more details +# +version: 2 +jobs: + build: + docker: + # specify the version you desire here + - image: circleci/openjdk:8-jdk + + # Specify service dependencies here if necessary + # CircleCI maintains a library of pre-built images + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/postgres:9.4 + + working_directory: ~/java-client-api + + # environment: + # Customize the JVM maximum heap limit + # MAVEN_OPTS: -Xmx3200m + + steps: + - checkout + + # Download and cache dependencies + - restore_cache: + key: java-client-api-{{ checksum "pom.xml" }} + + - run: mvn clean package -DskipTests -B + + - save_cache: + paths: + - ~/.m2 + key: java-client-api-{{ checksum "pom.xml" }} + + # run tests! + # - run: mvn integration-test + + - store_artifacts: + path: jenkins-client/target/jenkins-client-0.3.6-SNAPSHOT.jar diff --git a/pom.xml b/pom.xml index 2d0ab9b0..51eb0fbf 100644 --- a/pom.xml +++ b/pom.xml @@ -35,10 +35,10 @@ scm:git:https://github.com/jenkinsci/java-client-api.git - + UTF-8