Skip to content

Commit

Permalink
Download SLOOP Binaries (#5274)
Browse files Browse the repository at this point in the history
Part of #5262
  • Loading branch information
ugras-ergun-sonarsource authored Mar 5, 2024
1 parent 9572ce1 commit c9c1c4b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/DownloadDependencies/CommonProperties.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
<BaseRuleDescFileTargetDirectory>$(MSBuildThisFileDirectory)..\..\src\Rules\Embedded\</BaseRuleDescFileTargetDirectory>
</PropertyGroup>

<PropertyGroup>
<SloopBinaryFileName>sonarlint-backend-cli-$(EmbeddedSloopVersion)-windows_x64.zip</SloopBinaryFileName>
<SloopBinaryDownloadDir>$(LOCALAPPDATA)\SLVS_Build_Sloop</SloopBinaryDownloadDir>
<SloopBinaryDownloadPath>$(SloopBinaryDownloadDir)\$(SloopBinaryFileName)</SloopBinaryDownloadPath>
<SloopBinaryRemoteUrl>https://repox.jfrog.io/artifactory/sonarsource/org/sonarsource/sonarlint/core/sonarlint-backend-cli/$(EmbeddedSloopVersion)/$(SloopBinaryFileName)</SloopBinaryRemoteUrl>
</PropertyGroup>

<!-- ************************************************************** -->
<!-- Information about the individual language plugins we need to download -->
<!-- ************************************************************** -->
Expand Down
5 changes: 5 additions & 0 deletions build/DownloadDependencies/JarProcessing.targets
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<CallTarget Targets="DownloadIndividualJars" />
<CallTarget Targets="ExtractJsonFromJars" />
<CallTarget Targets="ExtractRuleDescFromJson" />
<CallTarget Targets="DownloadSloop" />
<CallTarget Targets="WriteOutputFile" />
</Target>

Expand All @@ -48,6 +49,10 @@
<DownloadFile SourceUrl="%(PluginJars.URL)" DestinationFolder="$(JarDownloadDir)" SkipUnchangedFiles="true" Retries="3" />
</Target>

<Target Name ="DownloadSloop">
<Exec Command="curl -u$(ARTIFACTORY_USER):$(ARTIFACTORY_PASSWORD) --ssl-no-revoke -C - --create-dirs --output $(SloopBinaryDownloadPath) --url $(SloopBinaryRemoteUrl)" />
</Target>

<Target Name="ExtractJsonFromJars">
<Message Importance="high" Text="[ProcessJarFiles] Removing existing json files ..." />
<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/EmbeddedSonarAnalyzer.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
-->
<EmbeddedSonarSecretsNuGetVersion>1.0.4</EmbeddedSonarSecretsNuGetVersion>
<EmbeddedSonarSecretsJarVersion>2.3.0.1632</EmbeddedSonarSecretsJarVersion>
<!-- SLOOP: Binaries for SonarLint Out Of Process -->
<EmbeddedSloopVersion>10.0.0.77129</EmbeddedSloopVersion>
</PropertyGroup>

</Project>

0 comments on commit c9c1c4b

Please sign in to comment.