adding jenkinsfile

This commit is contained in:
Andy Pack 2023-05-02 20:55:07 +01:00
parent 2be33dc549
commit c049b8ea95
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

39
.jenkins/jenkinsfile Normal file
View File

@ -0,0 +1,39 @@
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()
}
}
}