Skip to content

Commit

Permalink
Use env vars in worker.config.json
Browse files Browse the repository at this point in the history
Use Dev CLI for tests
  • Loading branch information
pragnagopa authored and amamounelsayed committed Jun 17, 2020
1 parent 873aaf0 commit e0bfc6e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ build_script:
Write-Host “Found git tag."
}
else {
$buildNumber = "1.5.3-$env:APPVEYOR_BUILD_NUMBER"
$buildNumber = "1.6.2-$env:APPVEYOR_BUILD_NUMBER"
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
}
.\package.ps1 -buildNumber $buildNumber
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:
Write-Host “Found git tag."
}
else {
$buildNumber = "1.5.3-$(Build.BuildId)"
$buildNumber = "1.6.2-$(Build.BuildId)"
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
}
.\package.ps1 -buildNumber $buildNumber
Expand Down
2 changes: 1 addition & 1 deletion e2e-nightly-cli-azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ steps:
Write-Host “Found git tag."
}
else {
$buildNumber = "1.5.3-$(Build.BuildId)"
$buildNumber = "1.6.2-$(Build.BuildId)"
Write-Host “git tag not found. Setting package suffix to '$buildNumber'"
}
.\package.ps1 -buildNumber $buildNumber
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure.functions</groupId>
<artifactId>azure-functions-java-worker</artifactId>
<version>1.5.3</version>
<version>1.6.2</version>
<packaging>jar</packaging>
<parent>
<groupId>com.microsoft.maven</groupId>
Expand Down
4 changes: 2 additions & 2 deletions setup-tests-pipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ if(!$skipCliDownload)

Write-Host "Downloading Functions Core Tools...."
Invoke-RestMethod -Uri 'https://functionsclibuilds.blob.core.windows.net/builds/3/latest/version.txt' -OutFile version.txt
Write-Host "Using Functions Core Tools version: $(Get-Content -Raw version.txt)"
Write-Host "Using Functions Core Tools version: pgopa-CLI"
$version = "$(Get-Content -Raw version.txt)"
Remove-Item version.txt

if ($version -and $version.trim())
{
$env:CORE_TOOLS_URL = "https://functionsclibuilds.blob.core.windows.net/builds/3/latest/Azure.Functions.Cli.win-x86.zip"
$env:CORE_TOOLS_URL = "https://pgopafunctestv2storage.blob.core.windows.net/cli/pgopa-cli.zip"
}
Write-Host "CORE_TOOLS_URL: $env:CORE_TOOLS_URL"
$output = "$currDir\Azure.Functions.Cli.zip"
Expand Down
4 changes: 2 additions & 2 deletions setup-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ if(!$skipCliDownload)

Write-Host "Downloading Functions Core Tools...."
Invoke-RestMethod -Uri 'https://functionsclibuilds.blob.core.windows.net/builds/3/latest/version.txt' -OutFile version.txt
Write-Host "Using Functions Core Tools version: $(Get-Content -Raw version.txt)"
Write-Host "Using Functions Core Tools version: pgopa-CLI"
$version = "$(Get-Content -Raw version.txt)"
Remove-Item version.txt

if ($version -and $version.trim())
{
$env:CORE_TOOLS_URL = "https://functionsclibuilds.blob.core.windows.net/builds/3/latest/Azure.Functions.Cli.win-x86.zip"
$env:CORE_TOOLS_URL = "https://pgopafunctestv2storage.blob.core.windows.net/cli/pgopa-cli.zip"
}
Write-Host "CORE_TOOLS_URL: $env:CORE_TOOLS_URL"
$output = "$currDir\Azure.Functions.Cli.zip"
Expand Down
4 changes: 2 additions & 2 deletions worker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"description": {
"language": "java",
"extensions": [".jar"],
"defaultExecutablePath": "java",
"defaultExecutablePath": "%JAVA_HOME%/bin/java",
"defaultWorkerPath": "azure-functions-java-worker.jar",
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar"]
"arguments": ["-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar", "%JAVA_OPTS%"]
}
}

0 comments on commit e0bfc6e

Please sign in to comment.