'GitLab run not picking changes in gradlew file

I have done some changes in gradlew. Locally in run they are getting reflected, but from GitLab same thing is not working. Below is my YAML file

image: *.io:1234/cx-java

before_script:
  - export GRADLE_USER_HOME=`pwd`/.gradle

cache:
  paths:
    - .gradle/wrapper
    - .gradle/caches
  policy: pull

stages:
  - build
  - perf_test

build:
  stage: build
  script:
    - ./gradlew clean :classes :testClasses :paylater:gatlingClasses
  allow_failure: false
  except:
    - schedules
  cache:
    paths:
      - .gradle/wrapper
      - .gradle/caches

perf_test:
  stage: perf_test
  script:
    - pwd
    - ./gradlew clean gatlingRun-${SIM_NAME}
  allow_failure: false
  when: manual
  artifacts:
    when: always
    paths:
      - ./build/reports/gatling

is there anything I need to change in terms of caching or something else to make it effective?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source