Skip to content

Commit

Permalink
Update javadoc build to use Hyperledger Bot
Browse files Browse the repository at this point in the history
Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti authored and mbwhite committed Nov 14, 2019
1 parent 4680efc commit 55ad1b9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ stages:
- job: javadoc
condition: and(succeeded(),eq(variables['Build.Reason'], 'IndividualCI'))
steps:
- checkout: self
persistCredentials: true
- script: ./gradlew javadoc
displayName: 'Build JavaDoc'
- script: |
Expand All @@ -110,6 +108,7 @@ stages:
git fetch origin
git checkout -b gh-pages origin/gh-pages
mkdir -p $(Build.SourceBranchName)/api
rm -rf $(Build.SourceBranchName)/api/*
cp -r fabric-chaincode-shim/build/docs/javadoc/* $(Build.SourceBranchName)/api
if [ -d gh-pages ]; then
find . -maxdepth 1 ! \( -name [.]* -o -name 'gh-pages' -o -name 'master' -o -name 'release-*' \) -exec rm -rf {} \;
Expand All @@ -118,11 +117,11 @@ stages:
fi
displayName: 'Update gh-pages branch'
- script: |
git config --local user.name "Azure Pipelines"
git config --local user.email "azuredevops@microsoft.com"
git config --global user.email "Hyperledger Bot"
git config --global user.name "hlfdev.azp@gmail.com"
git add -A
git commit -m "Publishing GitHub Pages"
git push origin gh-pages
git push https://$(GITHUB-PAT)@github.com/hyperledger/fabric-chaincode-java.git gh-pages
displayName: 'Commit gh-pages changes'
# Publish the snapshot images etc.
Expand Down

0 comments on commit 55ad1b9

Please sign in to comment.