Is there any way to run a gradle build using buildspec.yml file. buildspec.yml file contains a list of gradle build commands.
Yes its possible, PFB buildspec.yml
version: 0.1
phases:
install:
commands:
- echo Entering install phase...
- echo Nothing to do now
build:
commands:
- echo Build started on `date`
- gradle build
artifacts:
type: zip
files:
- 'build/libs/*.jar'
For reference: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With