image: moussavdb/yildiz-build-image

pipelines:
  default:
    - step:
        script:
          - export SONAR_SCANNER_OPTS="-Xmx3062m -XX:MaxPermSize=512m --XX:ReservedCodeCacheSize=128m"
          - openssl aes-256-cbc -pass pass:$OPENSSL_PWD -in private-key.gpg.enc -out private-key.gpg -d
          - gpg --import private-key.gpg
          - mvn -V -B -s settings.xml deploy -Pnoenv
          - mvn -V -B -s settings.xml -Pnative-sonar -Denv=linux64 org.jacoco:jacoco-maven-plugin:prepare-agent deploy sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR -Dsonar.cfamily.build-wrapper-output=target/sonar-cpp
          - mvn -V -B -s settings.xml -Pnative -Denv=win32 deploy

image: moussavdb/yildiz-build-image

pipelines:
  default:
    - step:
        script:
          - export SONAR_SCANNER_OPTS="-Xmx1024m -XX:MaxPermSize=512m --XX:ReservedCodeCacheSize=128m"
          - openssl aes-256-cbc -pass pass:$OPENSSL_PWD -in private-key.gpg.enc -out private-key.gpg -d
          - gpg --import private-key.gpg
          - mvn -V -B -s settings.xml deploy -Pnoenv
          - mvn -V -B -s settings.xml -Pnative-sonar -Denv=linux64 org.jacoco:jacoco-maven-plugin:prepare-agent deploy sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR -Dsonar.cfamily.build-wrapper-output=target/sonar-cpp
          - mvn -V -B -s settings.xml -Pnative -Denv=win32 deploy

Test running Sonar on pipelines.
[NO-JIRA] Test running Sonar on pipelines.
