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 {
|
||||
agent any
|
||||
stages {
|
||||
stage("clean") {
|
||||
steps {
|
||||
sh 'rm -rf ./dist/*'
|
||||
}
|
||||
}
|
||||
stage("install") {
|
||||
steps {
|
||||
sh 'mamba env update --file environment.yml'
|
||||
sh 'echo "mamba activate renamebycsv" >> ~/.bashrc'
|
||||
sh 'conda env update --file environment.yml'
|
||||
sh 'echo "conda activate renamebycsv" >> ~/.bashrc'
|
||||
}
|
||||
}
|
||||
stage("build") {
|
||||
@ -17,19 +12,9 @@ pipeline {
|
||||
sh "python -m build"
|
||||
}
|
||||
}
|
||||
stage("test") {
|
||||
steps {
|
||||
sh "pip install dist/*.whl"
|
||||
}
|
||||
}
|
||||
stage("archive") {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl'
|
||||
}
|
||||
}
|
||||
stage("publish package") {
|
||||
stage("publish") {
|
||||
when {
|
||||
branch '**/main'
|
||||
branch '**/master'
|
||||
}
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user