Skip to content

build

build #1

Workflow file for this run

name: Build
'on':
push:
branches:
- '*'
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build and analyze
env:
GITHUB_TOKEN: ceacfacffbccadbbacecefeaeedeeaeefccf
SONAR_TOKEN: 811c9a490983734401ba4e491eaefc8bfa7281de
run: >-
mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.projectKey=iamneo-production_ceacfacffbccadbbacecefeaeedeeaeefccf
-Dsonar.login=811c9a490983734401ba4e491eaefc8bfa7281de
- name: Trigger API
if: always()
env:
API_URL: 'https://api.examly.io/api/updateSonarQubeForNonTeams'
run: >
REPO_NAME=$(echo "${GITHUB_REPOSITORY}" | cut -d '/' -f 2)
BRANCH_NAME=${GITHUB_REF#refs/heads/}
GITHUB_USERNAME=$GITHUB_ACTOR
API_PAYLOAD="{ \"repo_id\": \"$REPO_NAME\", \"branch_name\":
\"$BRANCH_NAME\", \"github_username\": \"$GITHUB_USERNAME\" }"
curl -X POST -H "Content-Type: application/json" -d "$API_PAYLOAD"
$API_URL