Compare commits
No commits in common. "e95f5b5ac9b067f7b9e94bc00d41648d1320b754" and "9ed70b317d1de794d20a2eac92cb98c4ad4e5c07" have entirely different histories.
e95f5b5ac9
...
9ed70b317d
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@ -1,15 +1,10 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage("clean") {
|
|
||||||
steps {
|
|
||||||
sh 'rm -rf ./dist/*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("install") {
|
stage("install") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba env update --file environment.yml'
|
sh 'conda env update --file environment.yml'
|
||||||
sh 'echo "mamba activate renamebycsv" >> ~/.bashrc'
|
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build") {
|
stage("build") {
|
||||||
@ -17,19 +12,9 @@ pipeline {
|
|||||||
sh "python -m build"
|
sh "python -m build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("test") {
|
stage("publish") {
|
||||||
steps {
|
|
||||||
sh "pip install dist/*.whl"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("archive") {
|
|
||||||
steps {
|
|
||||||
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("publish package") {
|
|
||||||
when {
|
when {
|
||||||
branch '**/main'
|
branch '**/master'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user