ci.yml 555 Bytes
Newer Older
1
2
3
4
5
6
7
ci_build:
    only:
        - master
        - tags
        - merge_requests
    stage: build
    image: maven:3-jdk-11
8
9
10
    script:
        - 'export AAI_TOKEN=$(curl -u "helmholtz-marketplace:${CLIENT_SECRET}" -X POST "https://login.helmholtz.de/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&refresh_token=${AAI_REFRESH_TOKEN}&client_id=helmholtz-marketplace&client_secret=${CLIENT_SECRET}" | sed "s/{.*\"access_token\":\"\([^\"]*\).*}/\1/g")'
        - "mvn -Dtoken=$AAI_TOKEN -B package --file pom.xml"