CI: Remove lock file after every task
I tried using after_script, but it seems to not be supported on gitlab.com's public runners.
This commit is contained in:
parent
f02e478cc4
commit
6363e14f10
@ -18,6 +18,8 @@ build:
|
|||||||
done;
|
done;
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
# this file changes every time but should not be cached
|
||||||
|
- rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
|
||||||
|
|
||||||
connectedCheck:
|
connectedCheck:
|
||||||
variables:
|
variables:
|
||||||
@ -49,11 +51,15 @@ pmd:
|
|||||||
script:
|
script:
|
||||||
- export GRADLE_USER_HOME=$PWD/.gradle
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
||||||
- ./gradlew pmd -PdisablePreDex
|
- ./gradlew pmd -PdisablePreDex
|
||||||
|
# this file changes every time but should not be cached
|
||||||
|
- rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
|
||||||
|
|
||||||
checkstyle:
|
checkstyle:
|
||||||
script:
|
script:
|
||||||
- export GRADLE_USER_HOME=$PWD/.gradle
|
- export GRADLE_USER_HOME=$PWD/.gradle
|
||||||
- ./gradlew checkstyle -PdisablePreDex
|
- ./gradlew checkstyle -PdisablePreDex
|
||||||
|
# this file changes every time but should not be cached
|
||||||
|
- rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
|
||||||
|
|
||||||
tools:
|
tools:
|
||||||
script:
|
script:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user