Skip to content

Commit

Permalink
mgmt, codegen 4.0.42, add pipeline for data-plane SDK generation (#26001
Browse files Browse the repository at this point in the history
)

* mgmt, codegen 4.0.42

* pipeline for data-plane SDK generation
  • Loading branch information
weidongxu-microsoft authored Dec 13, 2021
1 parent 1c1306e commit 11e1fb4
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 3 deletions.
Empty file modified eng/mgmt/automation/generate_data.py
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions eng/mgmt/automation/generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variables:
- name: MAVEN_OPTS
value: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
- name: NodeVersion
value: '14.x'
value: '16.x'

steps:
- bash: |
Expand All @@ -28,7 +28,6 @@ steps:

- bash: |
npm install -g autorest
npm install
displayName: 'Install autorest'

- bash: |
Expand Down
45 changes: 45 additions & 0 deletions eng/mgmt/automation/generation_data.yml
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'
2 changes: 1 addition & 1 deletion eng/mgmt/automation/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

SDK_ROOT = '../../../' # related to file dir
AUTOREST_CORE_VERSION = '3.6.6'
AUTOREST_JAVA = '@autorest/java@4.0.41'
AUTOREST_JAVA = '@autorest/java@4.0.42'
DEFAULT_VERSION = '1.0.0-beta.1'
GROUP_ID = 'com.azure.resourcemanager'
API_SPECS_FILE = 'api-specs.yaml'
Expand Down

0 comments on commit 11e1fb4

Please sign in to comment.