Skip to content

Commit

Permalink
Merge pull request #549 from UIUCLibrary/clean-up-jenkins
Browse files Browse the repository at this point in the history
clean-up-jenkins
  • Loading branch information
henryborchers authored Nov 1, 2024
2 parents 603bcc4 + 009d134 commit 0b3c70a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ library identifier: 'JenkinsPythonHelperLibrary@2024.1.2', retriever: modernSCM(
])
def getVersion(){
node(){
checkout scm
def props = readTOML( file: 'pyproject.toml')['project']
return props.version
}
Expand Down Expand Up @@ -913,19 +914,16 @@ pipeline {
)
} else {
installMSVCRuntime('c:\\msvc_runtime\\')
bat(
label: 'Install uv',
script: '''python -m venv venv
call venv\\Scripts\\activate.bat
pip install uv
'''
)
script{
retry(3){
bat(
label: 'Testing with tox',
script: '''call venv\\Scripts\\activate.bat
script: '''python -m venv venv
call venv\\Scripts\\activate.bat
pip install uv
uvx --with tox-uv tox
rmdir /S /Q .tox
rmdir /S /Q venv
'''
)
}
Expand Down

0 comments on commit 0b3c70a

Please sign in to comment.