-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt, codegen 4.0.42, add pipeline for data-plane SDK generation (#26001
- Loading branch information
1 parent
1c1306e
commit 11e1fb4
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
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,45 @@ | ||
trigger: none | ||
|
||
pr: none | ||
|
||
pool: | ||
vmImage: 'ubuntu-20.04' | ||
|
||
variables: | ||
- group: Release Secrets for GitHub | ||
- name: MAVEN_CACHE_FOLDER | ||
value: $(Pipeline.Workspace)/.m2/repository | ||
- name: MAVEN_OPTS | ||
value: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)' | ||
- name: NodeVersion | ||
value: '16.x' | ||
|
||
steps: | ||
- bash: | | ||
sudo apt-get install -y --upgrade python3-pip python3-setuptools | ||
pip3 install --upgrade wheel | ||
pip3 install --upgrade PyYAML requests | ||
displayName: Update python | ||
|
||
- task: NodeTool@0 | ||
displayName: 'Install Node.js $(NodeVersion)' | ||
inputs: | ||
versionSpec: '$(NodeVersion)' | ||
|
||
- bash: | | ||
npm install -g autorest | ||
displayName: 'Install autorest' | ||
|
||
- bash: | | ||
export PATH=$JAVA_HOME_11_X64/bin:$PATH | ||
java -version | ||
./eng/mgmt/automation/generate_data.py --input-file="$(INPUT_FILE)" --group="$(GROUP)" --module="$(MODULE)" --credential-types="$(CREDENTIAL_TYPES)" --credential-scopes="$(CREDENTIAL_SCOPES)" | ||
displayName: Generation | ||
|
||
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml | ||
parameters: | ||
PRBranchName: fluent-lite-generation-$(Build.BuildId) | ||
CommitMsg: '[Automation] Generate Data-plane SDK for $(MODULE)' | ||
PRTitle: '[Automation] Generate Data-plane SDK for $(MODULE)' | ||
PRLabels: 'LLC' | ||
OpenAsDraft: 'true' |
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