Updated publication credentials
All checks were successful
bmlsa/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2024-11-14 20:19:48 +00:00
parent 884787f31d
commit 5e59eb4302

10
Jenkinsfile vendored
View File

@ -24,9 +24,11 @@ pipeline {
sh 'rm -rf ./dist/*' sh 'rm -rf ./dist/*'
sh 'rm -rf ./docs/build/*' sh 'rm -rf ./docs/build/*'
sh "python -m build" sh "python -m build"
sh 'sphinx-apidoc -o docs/source/autodoc/bmlsa src/bmlsa --force' container('sphinx') {
sh 'sphinx-build -M html ./docs/source ./docs/build' sh 'sphinx-apidoc -o docs/source/autodoc/bmlsa src/bmlsa --force'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs/build/html', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: '']) sh 'sphinx-build -M html ./docs/source ./docs/build'
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'docs/build/html', reportFiles: 'index.html', reportName: 'Documentation', reportTitles: ''])
}
} }
} }
stage("test installation") { stage("test installation") {
@ -46,7 +48,7 @@ pipeline {
branch '**/master' branch '**/master'
} }
steps { steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) { withCredentials([usernamePassword(credentialsId: '4d6f64be-d26d-4f95-8de3-b6a9b0beb311', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh returnStatus: true, script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*' sh returnStatus: true, script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*'
} }
} }