From b867f333a1d360f6aaf6487b655b6794b9d0bb83 Mon Sep 17 00:00:00 2001 From: Harrison Date: Sat, 8 Apr 2023 05:36:11 -0500 Subject: [PATCH] Changed to using mamba environment --- Jenkinsfile | 24 ++++++++++++++++++++++++ environment.yaml | 10 ++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Jenkinsfile create mode 100644 environment.yaml diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..73afdcd --- /dev/null +++ b/Jenkinsfile @@ -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/*" + } + } + } + } +} \ No newline at end of file diff --git a/environment.yaml b/environment.yaml new file mode 100644 index 0000000..970072c --- /dev/null +++ b/environment.yaml @@ -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