Changed to using mamba environment
This commit is contained in:
parent
1e508eeace
commit
b867f333a1
24
Jenkinsfile
vendored
Normal file
24
Jenkinsfile
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
stages {
|
||||||
|
stage("install") {
|
||||||
|
steps {
|
||||||
|
sh 'conda env update --file environment.yml'
|
||||||
|
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("build") {
|
||||||
|
steps {
|
||||||
|
sh "python -m build"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("publish") {
|
||||||
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||||
|
// some block
|
||||||
|
sh "pip -m twine upload --repository-url https://git.reslate.systems -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
10
environment.yaml
Normal file
10
environment.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: renamebycsv
|
||||||
|
channels:
|
||||||
|
- anaconda
|
||||||
|
- conda-forge
|
||||||
|
dependencies:
|
||||||
|
- build=0.7.0
|
||||||
|
- pytest=7.2.2
|
||||||
|
- python=3.11.3
|
||||||
|
- setuptools=67.6.1
|
||||||
|
- twine=4.0.2
|
Loading…
Reference in New Issue
Block a user