From 1c37244279ea74e20a11e145fb86551c38365795 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 6 Sep 2019 17:44:58 -0700 Subject: [PATCH] Add a run of `git remote -v` so we learn what "checkout: self" really does. Add echo lines between each command to confirm which command is failing. --- azure-pipelines.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 20b2b0265..7e78a9b69 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -244,17 +244,31 @@ jobs: artifactName: rustdocs targetPath: $(Pipeline.Workspace)/rustdocs - bash: | + echo a + git remote -v + echo b git checkout --orphan test-branch/fake-gh-pages + echo c git rm -rf . + echo d mkdir rustdoc/ + echo e cp -r $(Pipeline.Workspace)/rustdocs/* rustdoc/ + echo f echo '' > index.html + echo g echo '' > rustdoc/index.html + echo h git config --local user.name "Azure Pipelines" + echo i git config --local user.email "azuredevops@microsoft.com" + echo j git add . + echo k git commit -m "Publishing GitHub Pages ***NO_CI***" + echo l git push --set-upstream origin test-branch/fake-gh-pages --force + echo m # We only run the pipelines on PRs to Master pr: