Compare commits

...

5 Commits

Author SHA1 Message Date
Emilia Allison ca5c15756e Merge pull request 'Update main version' (#7) from beta-release into main
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
Reviewed-on: #7
2024-01-31 02:00:40 +00:00
Emilia Allison 0b6aec2f6c
pls work
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
2024-01-30 20:56:48 -05:00
Emilia Allison 0b82f2b1ab
See last commit
Gitea Scan/plate-tool/pipeline/head There was a failure building this commit Details
2024-01-30 20:55:09 -05:00
Emilia Allison 1f213f47e8
Jenkinsfile compatability with main
Gitea Scan/plate-tool/pipeline/head There was a failure building this commit Details
2024-01-30 20:50:11 -05:00
Emilia Allison 984bbda0c1
Test Jenkinsfile for building plate-tool-beta
Gitea Scan/plate-tool/pipeline/head This commit looks good Details
Hotfix #1

Hotfix #2

Hothix #4

Hotfix #5

Transfer & Deploy steps

Hotfix #6

Hotfix #7

Hotfix #8
2024-01-06 15:53:02 -05:00
1 changed files with 43 additions and 0 deletions

43
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,43 @@
pipeline {
agent any
environment {
OUTPUT_DIR = "${env.BRANCH_NAME == "main" ? "plate-tool" : "plate-tool-beta"}"
}
stages {
stage('Build') {
steps {
sh '''
. "$HOME/.cargo/env"
trunk build --release --public-url "cool-stuff/$OUTPUT_DIR/"
'''
}
}
stage('Archive') {
steps {
zip zipFile: "dist.zip", archive: true, dir: "dist/"
archiveArtifacts artifacts: "dist.zip", fingerprint: true
}
}
stage('Transfer') {
steps {
sh 'echo "put -r dist/" | sftp oracle'
}
}
stage('Deploy') {
steps {
sh '''
ssh oracle "sudo rm -rf /usr/share/nginx/html/$OUTPUT_DIR/ && sudo mv dist /usr/share/nginx/html/$OUTPUT_DIR"
'''
}
}
}
post {
always {
cleanWs(notFailBuild: true,
deleteDirs: true,
cleanWhenNotBuilt: false,
patterns: [[pattern: 'target/', type: 'EXCLUDE']])
}
}
}