-
Notifications
You must be signed in to change notification settings - Fork 11
SONARFLEX-201 Unify Platform Dogfooding #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a8c4a36
SONARFLEX-201 Unify Platform Dogfooding
vdiez bef9d4a
SONARFLEX-201 Unify Platform Dogfooding
vdiez abecc64
SONARFLEX-201 Unify Platform Dogfooding
vdiez f8857e7
SONARFLEX-201 Unify Platform Dogfooding
vdiez d1fcc76
SONARFLEX-201 Unify Platform Dogfooding
vdiez 433ffaf
SONARFLEX-201 Unify Platform Dogfooding
vdiez fb28879
SONARFLEX-201 Unify Platform Dogfooding
vdiez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| : "${ARTIFACTORY_PRIVATE_USERNAME?}" "${ARTIFACTORY_ACCESS_TOKEN?}" "${ARTIFACTORY_URL?}" | ||
| : "${SONAR_SOURCE_IRIS_TOKEN?}" "${SONAR_TARGET_IRIS_TOKEN?}" "${SONAR_TARGET_URL?}" | ||
|
|
||
| function run_iris () { | ||
| java \ | ||
| -Diris.source.projectKey="org.sonarsource.flex:flex" \ | ||
| -Diris.source.organization="sonarsource" \ | ||
| -Diris.source.url="https://next.sonarqube.com/sonarqube" \ | ||
| -Diris.source.token="$SONAR_SOURCE_IRIS_TOKEN" \ | ||
| -Diris.destination.projectKey="SonarSource_sonar-flex" \ | ||
| -Diris.destination.organization="sonarsource" \ | ||
| -Diris.destination.url="$SONAR_TARGET_URL" \ | ||
| -Diris.destination.token="$SONAR_TARGET_IRIS_TOKEN" \ | ||
| -Diris.dryrun=$1 \ | ||
| -jar iris-\[RELEASE\]-jar-with-dependencies.jar | ||
| } | ||
|
|
||
| VERSION="\[RELEASE\]" | ||
| HTTP_CODE=$(\ | ||
| curl \ | ||
| --write-out '%{http_code}' \ | ||
| --location \ | ||
| --remote-name \ | ||
| --user "$ARTIFACTORY_PRIVATE_USERNAME:$ARTIFACTORY_ACCESS_TOKEN" \ | ||
| "$ARTIFACTORY_URL/sonarsource-private-releases/com/sonarsource/iris/iris/$VERSION/iris-$VERSION-jar-with-dependencies.jar"\ | ||
| ) | ||
|
|
||
| if [ "$HTTP_CODE" != "200" ]; then | ||
| echo "Download $VERSION failed -> $HTTP_CODE" | ||
| exit 1 | ||
| else | ||
| echo "Downloaded $VERSION" | ||
| fi | ||
|
|
||
| echo "===== Execute IRIS as dry-run" | ||
| run_iris "true" | ||
| STATUS=$? | ||
| if [ $STATUS -ne 0 ]; then | ||
| echo "===== Failed to run IRIS dry-run" | ||
| exit 1 | ||
| else | ||
| echo "===== Successful IRIS dry-run - executing IRIS for real." | ||
| run_iris "false" | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,3 +30,5 @@ Icon? | |
| Thumbs.db | ||
| # Folder config file | ||
| Desktop.ini | ||
|
|
||
| coverage/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>org.sonarsource.flex</groupId> | ||
| <artifactId>flex</artifactId> | ||
| <version>2.15.0-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <artifactId>coverage-report</artifactId> | ||
| <name>Coverage Report</name> | ||
| <description>Aggregate Coverage Report</description> | ||
| <packaging>pom</packaging> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>${project.groupId}</groupId> | ||
| <artifactId>flex-checks</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>${project.groupId}</groupId> | ||
| <artifactId>flex-squid</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>${project.groupId}</groupId> | ||
| <artifactId>sonar-flex-plugin</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>${project.groupId}</groupId> | ||
| <artifactId>sslr-flex-toolkit</artifactId> | ||
| <version>${project.version}</version> | ||
| </dependency> | ||
| </dependencies> | ||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.jacoco</groupId> | ||
| <artifactId>jacoco-maven-plugin</artifactId> | ||
| <configuration> | ||
| <formats>XML</formats> | ||
| <outputDirectory>${maven.multiModuleProjectDirectory}/coverage/java</outputDirectory> | ||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>report-aggregate</id> | ||
| <phase>verify</phase> | ||
| <goals> | ||
| <goal>report-aggregate</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>exec-maven-plugin</artifactId> | ||
| <version>3.5.1</version> | ||
| <executions> | ||
| <execution> | ||
| <id>Clean the Java Coverage folder</id> | ||
| <phase>clean</phase> | ||
| <goals> | ||
| <goal>exec</goal> | ||
| </goals> | ||
| <configuration> | ||
| <executable>rm</executable> | ||
| <workingDirectory>../..</workingDirectory> | ||
| <arguments> | ||
| <argument>-rf</argument> | ||
| <argument>coverage/java</argument> | ||
| </arguments> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
|
|
||
| </project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:copypaste?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it's almost same implementation in all 4 repos