39 lines
873 B
Plaintext
39 lines
873 B
Plaintext
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
// stage('Build Python Env') {
|
|
// steps {
|
|
// sh 'poetry install'
|
|
// }
|
|
// }
|
|
|
|
stage('Build Javascript') {
|
|
steps {
|
|
sh 'npm ci'
|
|
sh 'npm run build --if-present'
|
|
}
|
|
}
|
|
// stage('Test') {
|
|
// steps {
|
|
// dotnetTest project: "Selector.Core.sln"
|
|
// }
|
|
// }
|
|
stage('Deploy') {
|
|
when { branch 'master' }
|
|
steps {
|
|
script {
|
|
docker.withRegistry('https://git.sarsoo.xyz', 'git-registry-creds') {
|
|
|
|
docker.build("sarsoo/mixonomer:latest").push()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
} |