kind: pipeline type: docker name: build steps: - name: build image: eclipse-temurin:21-jdk commands: - echo "Starting build process..." - chmod +x gradlew - ./gradlew build --no-daemon --stacktrace - name: publish image: eclipse-temurin:21-jdk commands: - echo "Publishing artifacts..." - mkdir -p artifacts - cp build/libs/*.jar artifacts/ - ls -la artifacts/ when: branch: - main status: - success trigger: branch: - main event: - push - pull_request