diff --git a/Jenkinsfile b/Jenkinsfile index b3c2521..0b84ab9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,12 +9,16 @@ pipeline { } } stage('Document') { + steps { + sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME + } + } + stage('Publish Docs') { when { - branch 'release' + branch 'release' } steps { - sh 'dotnet cake --target Document' - sh 'cp Docs/_site/** /var/www/MLEM/ -r' + sh 'cp Docs/_site/** /var/www/MLEM/ -r' } } }