Mixonomer/.jenkins/jenkinsfile

39 lines
878 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://registry.sarsoo.xyz', 'git-registry-creds') {
docker.build("sarsoo/mixonomer:latest").push()
}
}
}
}
}
post {
always {
cleanWs()
}
}
}