Skip to content

Commit 749ae0e

Browse files
committed
Upload worker zip to blob
1 parent 5f1e6f6 commit 749ae0e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

azure-pipelines-1.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ steps:
3434
- pwsh: |
3535
.\setup-tests.ps1
3636
displayName: 'Setting tests'
37+
- pwsh: |
38+
.\run-tests.ps1
39+
env:
40+
AzureWebJobsStorage: $(AzureWebJobsStorage)
41+
AzureWebJobsCosmosDBConnectionString: $(AzureWebJobsCosmosDBConnectionString)
42+
AzureWebJobsServiceBus: $(AzureWebJobsServiceBus)
43+
AzureWebJobsEventHubReceiver: $(AzureWebJobsEventHubReceiver)
44+
AzureWebJobsEventHubSender: $(AzureWebJobsEventHubSender)
45+
AzureWebJobsEventHubPath: $(AzureWebJobsEventHubPath)
46+
SBTopicName: $(SBTopicName)
47+
SBTopicSubName: $(SBTopicSubName)
48+
CosmosDBDatabaseName: $(CosmosDBDatabaseName)
49+
SBQueueName: $(SBQueueName)
50+
displayName: 'running tests'
51+
continueOnError: true
3752
- pwsh: |
3853
Compress-Archive -Path $(System.DefaultWorkingDirectory)\endtoendtests\target\azure-functions\azure-functions-java-endtoendtests\* -DestinationPath $(System.DefaultWorkingDirectory)\endtoendtests\e2etestsjava.zip
3954
displayName: 'Create test app zip file'
@@ -54,6 +69,21 @@ steps:
5469
env:
5570
AzureFunctionsE2ETestStorage: $(AzureFunctionsE2ETestStorage)
5671
displayName: 'Copying test app zip artifacts to blob'
72+
- pwsh: |
73+
Compress-Archive -Path '$(Build.Repository.LocalPath)\pkg\*' -DestinationPath $(System.DefaultWorkingDirectory)\javaworker.zip
74+
displayName: 'Create test app zip file'
75+
- pwsh: |
76+
$localFileJavaWorker = '$(System.DefaultWorkingDirectory)\javaworker.zip'
77+
if (Test-Path $localFileJavaWorker)
78+
{
79+
Write-Host "localFileJavaWorker file exists"
80+
}
81+
$blobName = 'javaworker.zip'
82+
$Context = New-AzStorageContext -StorageAccountName $(StorageAccountName) -StorageAccountKey $(StorageAccountKey)
83+
Set-AzStorageBlobContent -File $localFile -Container $(ContainerName) -Blob $blobName -Context $Context -Force -Verbose
84+
env:
85+
AzureFunctionsE2ETestStorage: $(AzureFunctionsE2ETestStorage)
86+
displayName: 'Copying java worker zip to blob'
5787
- task: PublishBuildArtifacts@1
5888
inputs:
5989
PathtoPublish: '$(Build.ArtifactStagingDirectory)'

0 commit comments

Comments
 (0)