-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updates for ga * Update README.md * Add detailed plugin docs * Remove ghcr credentials from cli --------- Co-authored-by: Ethan Dennis <[email protected]> Co-authored-by: Ethan Dennis <[email protected]>
- Loading branch information
1 parent
627564a
commit 0fb03fa
Showing
363 changed files
with
17,073 additions
and
394 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,56 @@ | ||
# Ant task | ||
|
||
## Azure DevOps input | ||
|
||
```yaml | ||
- task: Ant@1 | ||
inputs: | ||
buildFile: 'build.xml' # Required, alias: antBuildFile | ||
options: -DmyProperty=myPropertyValue # Optional | ||
targets: build-test # Optional | ||
publishJUnitResults: true # Required | ||
testResultsFiles: '**/TEST-*.xml' # Required when publishJUnitResults == True | ||
testRunTitle: "Test Run Title" # Optional | ||
antHomeDirectory: ANT_HOME # Optional, alias: antHomeUserInputPath | ||
javaHomeOption: 'JDKVersion' # Options: jDKVersion, path, Alias: javaHomeSelection | ||
jdkVersionOption: 'default' # Optional. Options: default, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6, Alias: jdkVersion | ||
jdkUserInputDirectory: # Required when javaHomeOption == Path, Alias: jdkUserInputPath | ||
jdkArchitectureOption: 'x64' # Optional. Options: x86, x64, Alias: jdkArchitecture | ||
``` | ||
### Transformed Github Action | ||
```yaml | ||
- name: Set up JDK 1.11 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '1.11' | ||
- run: ant -DmyProperty=myPropertyValue -buildfile build.xml build-test | ||
env: | ||
ANT_HOME: ANT_HOME_DIR | ||
- name: Publish test results | ||
uses: EnricoMi/[email protected] | ||
if: always() | ||
with: | ||
comment_title: Test Run Title | ||
files: "**/TEST-*.xml" | ||
``` | ||
```yaml | ||
# publishJUnitResults: false | ||
- name: Set up JDK 1.11 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '1.11' | ||
- run: ant -DmyProperty=myPropertyValue -buildfile build.xml build-test | ||
env: | ||
ANT_HOME: ANT_HOME_DIR | ||
``` | ||
### Unsupported inputs | ||
- codeCoverageToolOptions, alias: codeCoverageTool | ||
- codeCoverageClassFilesDirectories, alias: classFilesDirectories | ||
- codeCoverageClassFilter, alias: classFilter | ||
- codeCoverageSourceDirectories, alias: srcDirectories | ||
- codeCoverageFailIfEmpty, alias: failIfCoverageEmpty |
This file contains 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,50 @@ | ||
# ArchiveFiles task | ||
|
||
## Azure DevOps input | ||
|
||
```yaml | ||
steps: | ||
- task: ArchiveFiles@2 | ||
inputs: | ||
rootFolderOrFile: '$(Build.BinariesDirectory)' # Required, Default: $(Build.BinariesDirectory) | ||
includeRootFolder: true # Required | ||
archiveType: 'zip' # Required, Options: zip, 7z, tar, wim | ||
tarCompression: 'gz' # Optional, Options: gz, bz2, xz, None. Default: 'gz' | ||
sevenZipCompression: "9" # Default: 5 | ||
archiveFile: 'archive_file' # Required, Default: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip | ||
replaceExistingArchive: true # Required | ||
verbose: false # Optional | ||
quiet: false # Optional | ||
``` | ||
### Transformed Github Action | ||
Note: | ||
- incoming input for archive_file needs to specify extension type. It is not added in transformation. | ||
- Zip uses 7z compression | ||
```yaml | ||
|
||
- name: Tar files | ||
run: tar -cf archive_file $(Build.BinariesDirectory) --overwrite | ||
``` | ||
```yaml | ||
|
||
- name: Zip files | ||
run: 7z u archive_file $(Build.BinariesDirectory) | ||
``` | ||
```yaml | ||
|
||
- name: 7z files | ||
run: 7z u -mx=9 archive_file $(Build.BinariesDirectory) | ||
``` | ||
### Unsupported inputs | ||
- archiveType (wim) | ||
- quiet | ||
- verbose (7z, zip) | ||
- sevenzipcompression (zip) |
This file contains 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,60 @@ | ||
# Azure App Service Manage task | ||
|
||
## Azure DevOps input | ||
|
||
```yaml | ||
# Azure App Service manage | ||
# Start, stop, restart, slot swap, slot delete, install site extensions or enable continuous monitoring for an Azure App Service | ||
- task: AzureAppServiceManage@0 | ||
inputs: | ||
azureSubscription: # Required, Alias: ConnectedServiceName | ||
action: 'Swap Slots' # Optional. Default: Swap Slots | ||
# Options: Swap Slots, Start Swap With Preview, Complete Swap, Cancel Swap, Start Azure App Service, Stop Azure App Service, Restart Azure App Service, Delete Slot, Install Extensions, Enable Continuous Monitoring, Start all continuous webjobs, Stop all continuous webjobs | ||
webAppName: "App Name" # Required | ||
specifySlotOrASE: false # Optional, Alias: SpecifySlot | ||
resourceGroupName: # Required when action == Swap Slots || Action == Delete Slot || SpecifySlot == True | ||
sourceSlot: # Required when action == Swap Slots | ||
swapWithProduction: true # Optional, Default: true | ||
targetSlot: # Required when action == Swap Slots && SwapWithProduction == False | ||
preserveVnet: false # Optional, Default: false | ||
slot: 'production' # Required when action == Delete Slot || SpecifySlot == True, Default: production | ||
# Unsupported | ||
extensionsList: # Required when action == Install Extensions | ||
outputVariable: # Optional | ||
appInsightsResourceGroupName: # Required when action == Enable Continuous Monitoring | ||
applicationInsightsResourceName: # Required when action == Enable Continuous Monitoring | ||
applicationInsightsWebTestName: # Optional | ||
``` | ||
### Transformed Github Action | ||
```yaml | ||
- uses: Azure/login@v1 | ||
with: | ||
creds: "${{ secrets.AZURE_CREDENTIALS }}" | ||
- uses: azure/[email protected] | ||
with: | ||
# Action - Start & Stop | ||
inlineScript: az webapp start --name "web-app" --resource-group "app-resource-group" --subscription "Azure Subscription" | ||
# Action - Delete Slot | ||
inlineScript: az webapp deployment slot delete --name "web-app" --resource-group "app-resource-group" --subscription "Azure Subscription" --slot "staging" | ||
# Action - Swap Slots, add action field for Start With Preview, Complete Swap, Cancel Swap | ||
inlineScript: az webapp deployment slot swap --name "web-app" --resource-group "app-resource-group" --subscription "Azure Subscription" --slot "staging" --target-slot "targetSlot" --preserve-vnet false --action {preview, swap, reset} | ||
# Start/Stop all continuous WebJobs | ||
inlineScript: |- | ||
WEB_JOBS="$(az webapp webjob continuous list --name "service-app" --resource-group "service-resource-group" --subscription "Azure Subscription" --query "[].name" --output tsv)" | ||
echo "$WEB_JOBS" | while read line ; do | ||
web_job_name="${line##*/}" | ||
az webapp webjob continuous start --name "service-app" --resource-group "service-resource-group" --subscription "Azure Subscription" --slot "slot-staging" --webjob-name "$web_job_name" | ||
done | ||
``` | ||
### Unsupported inputs | ||
- Enable Continuous Monitoring(Action) | ||
- Install Extensions(Action) | ||
- ExtensionsList(Install Extensions) | ||
- OutputVariable(Install Extensions) | ||
- AppInsightsResourceGroupName(Enable Continuous Monitoring) | ||
- ApplicationInsightsResourceName(Enable Continuous Monitoring) | ||
- ApplicationInsightsWebTestName(Enable Continuous Monitoring) |
Oops, something went wrong.