Unable to build jar: "Not Deploying"

Hello,
I’m attempting to build a jar on my Java project and keep getting the message “Not deploying”. Here is my circle configuration.

test:
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
  dev-server:
    branch: develop
    commands:
      - ./gradlew build -x test

The gradlew executable is present in my project. I’ve tried logging in by SSH to the build machine and I don’t get any errors when I run gradlew. I’ve variously tried:

  • (./gradlew build -x test)
  • smarttag-position-service/gradlew build -x test

But I always get “Not deploying” under “Checking deployment”…

In case it helps anyone I got it to build by putting the gradlew command in the override section. ( I don’t know if that’s the correct way of doing it…)

dependencies:
  override:
     - chmod +x gradlew
     - ./gradlew build -x test
test:
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
deployment:
  dev-server:
    branch: develop
    commands:
      - scp -v build/libs/smarttag-position-service-*.jar ...
1 Like