Skip to content

Commit 726f991

Browse files
committed
Jenkins: fix gh-pages upload
1 parent 52661e1 commit 726f991

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,14 +591,14 @@ pipeline {
591591
usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD')]) {
592592
sh """#!/bin/bash
593593
set -x
594-
git config user.email "mc.stanislaw@gmail.com"
595-
git config user.name "Stan Jenkins"
596-
git worktree add doc/api/html gh-pages
597-
rm -rf doc/api/html/*
598594
make doxygen
599595
cd doc/api/html
596+
git init
597+
git checkout -b gh-pages
598+
git config user.email "mc.stanislaw@gmail.com"
599+
git config user.name "Stan Jenkins"
600600
git add -f .
601-
git commit --author='Stan BuildBot <mc.stanislaw@gmail.com>' -m "auto generated docs from Jenkins" --amend
601+
git commit --author='Stan BuildBot <mc.stanislaw@gmail.com>' -m "auto generated docs from Jenkins"
602602
git push https://${GIT_USERNAME}:${GIT_PASSWORD}@github.com/stan-dev/math.git gh-pages --force
603603
"""
604604
}

0 commit comments

Comments
 (0)