Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new pipeline for codegen #3375

Merged
merged 38 commits into from
Aug 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
399fde5
new pipeline for codegen
May 25, 2022
9135cc5
bugfix: taskresult is required, check exist before prepare sourcecode
May 30, 2022
42569aa
Merge branch 'main' into zz/codeGeneration-pipeline
May 30, 2022
dd14435
Simplify Judgment Conditions
Jun 6, 2022
701ede4
delete unnecessary variable
Jun 6, 2022
bca1a02
separate artifacts from total one to three part
Jun 6, 2022
5c4c3dd
move mkdir out of loop for it has the same path
Jun 6, 2022
d7d278d
may not generate artifact so event task failed, the pipeline should c…
Jun 7, 2022
f63a7c1
use pr number to checkout swagger repo
Jun 8, 2022
18dde52
[bugfix] fix missed parameter
Jun 8, 2022
338d5c3
delete test code
Jun 8, 2022
7c26ca9
pipeline support use swagger pr to checkout spec repo
Jun 8, 2022
c3d79fc
try upload logs file to artifact even sdk generation failed
Jun 8, 2022
0d4719f
debug for pipeline
May 30, 2022
ed63dfe
build dpg
Jul 11, 2022
ab15072
codegen pipeline support java dpg
Jul 29, 2022
cb67d26
add release pipeline name and build type in result
Aug 2, 2022
4d740f7
use azure-sdk account for create sdk pr
Aug 3, 2022
ba8a468
support add ex cmd for docker
Aug 4, 2022
a888112
event generate and build stage failed, try to upload source code and …
Aug 5, 2022
8eae16c
don't exit 1 event generate cmd return 1
Aug 5, 2022
045edca
use one token for all git cmd
Aug 8, 2022
114b72d
set sdk url by variable
Aug 8, 2022
0478270
Merge pull request #1 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 8, 2022
10958d6
use env variable to control whether to show debug info
Aug 8, 2022
e6c33ea
Merge pull request #2 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 8, 2022
df390ee
Merge branch 'main' into zz/codeGeneration-pipeline
Aug 8, 2022
1e6bd6b
remove hard code branch
Aug 9, 2022
c2ffc61
roll back for debug
Aug 9, 2022
9eda067
test
Aug 9, 2022
5b3fd87
set basedir for git wapper
Aug 10, 2022
f08bcf2
Merge pull request #3 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 10, 2022
a7a8ad8
lint fix
Aug 10, 2022
6eadaa8
Merge pull request #4 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 10, 2022
f8b958a
update js ci test repo commitid
Aug 10, 2022
07a74aa
Merge pull request #5 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 10, 2022
ab7adde
lint fix
Aug 10, 2022
acd3102
Merge pull request #6 from zzvswxy/zz/codegen-pipeline
zzvswxy Aug 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
try upload logs file to artifact even sdk generation failed
Signed-off-by: zzvswxy <zhouzheng@microsoft.com>
zzvswxy committed Jun 8, 2022
commit c3d79fc78fa7891e3f85e7b3dc3821f26ec1ccc4
Original file line number Diff line number Diff line change
@@ -42,22 +42,23 @@ steps:
condition: always()

- bash: |
prepareArtifactFiles \
--artifactDir="$(System.ArtifactsDirectory)" \
--generateAndBuildOutputFile="/tmp/output/generateAndBuildOutputJson.json" \
--language="${{ parameters.sdk }}"
if [ $? -ne 0 ]; then
exit 1
fi
cp /tmp/output/docker.log $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-full.log
cp /tmp/output/init-task.log $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-init.log
cp /tmp/output/init-task-result.json $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-init-result.json
cp /tmp/output/generateAndBuild-task.log $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-generateAndBuild.log
cp /tmp/output/generateAndBuild-task-result.json $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-generateAndBuild-result.json
cp /tmp/output/mockTest-task.log $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-mockTest.log | echo "wait all language support mock test"
cp /tmp/output/mockTest-task-result.json $(System.ArtifactsDirectory)/logs/${{ parameters.sdkGenerationName }}-mockTest-result.json | echo "wait all language support mock test"
prepareArtifactFiles \
--artifactDir="$(System.ArtifactsDirectory)" \
--generateAndBuildOutputFile="/tmp/output/generateAndBuildOutputJson.json" \
--language="${{ parameters.sdk }}"
if [ $? -ne 0 ]; then
exit 1
fi
displayName: Prepare artifact
workingDirectory: $(SDK_REPO)
condition: always()

- task: PublishPipelineArtifact@1
displayName: Publish SDK Generation pipeline artifact
@@ -77,6 +78,7 @@ steps:
inputs:
targetPath: $(System.ArtifactsDirectory)/logs/
artifactName: sdk-generation-logs
condition: always()

- bash: |
publishResult \