Skip to content

Commit 7851a16

Browse files
committed
azure: Remove job generating documentation
With the recent addition of GitHub Actions to our CI infrastructure, we now have two jobs which generate documentation: once in GHA, once in Azure. Naturally, as they both want to update the same branch, they race against each other and one of both jobs will fail. Fix this by removing the documentation job from Azure.
1 parent c71321a commit 7851a16

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -151,40 +151,3 @@ jobs:
151151
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
152152
SKIP_SSH_TESTS: true
153153
SKIP_NEGOTIATE_TESTS: true
154-
155-
- job: documentation
156-
displayName: 'Generate Documentation'
157-
pool:
158-
vmImage: 'ubuntu-18.04'
159-
steps:
160-
- script: |
161-
cd $(Build.SourcesDirectory)/azure-pipelines/docker
162-
docker build -t libgit2/docurium --build-arg BASE=ubuntu:trusty -f docurium .
163-
displayName: 'Build Docker image'
164-
- script: |
165-
git config user.name 'Documentation Generation'
166-
git config user.email 'libgit2@users.noreply.github.com'
167-
git branch gh-pages origin/gh-pages
168-
docker run --rm -v $(Build.SourcesDirectory):/home/libgit2/source -w /home/libgit2/source libgit2/docurium:latest cm doc api.docurium
169-
git checkout gh-pages
170-
cp -R * '$(Build.BinariesDirectory)'
171-
displayName: 'Generate Documentation'
172-
- task: archivefiles@2
173-
displayName: 'Archive Documentation'
174-
inputs:
175-
rootFolderOrFile: '$(Build.BinariesDirectory)'
176-
includeRootFolder: false
177-
archiveFile: '$(Build.ArtifactStagingDirectory)/api-documentation.zip'
178-
- task: publishbuildartifacts@1
179-
displayName: 'Upload Documentation Artifact'
180-
inputs:
181-
pathToPublish: '$(Build.ArtifactStagingDirectory)'
182-
artifactName: 'docs'
183-
- script: |
184-
git remote -v
185-
echo 'machine github.com' > ~/.netrc
186-
echo 'login $(GITHUB_USERNAME)' >> ~/.netrc
187-
echo 'password $(GITHUB_PAT)' >> ~/.netrc
188-
git push origin gh-pages
189-
displayName: 'Publish Documentation'
190-
condition: and(eq(variables['Build.Repository.Name'], 'libgit2/libgit2'), eq(variables['Build.Reason'], 'IndividualCI'))

0 commit comments

Comments
 (0)