mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Merge branch 'master' into 1.12
* master: Add Jenkinsfile
This commit is contained in:
commit
e993846cb6
1 file changed
+33
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
tools {
|
||||
gradle "Gradle 4.4"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh "gradle"
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
echo "Current build result: ${currentBuild.result}"
|
||||
withAWS(region: 'us-east-1', credentials:'add82375-f3a1-4b2c-bf52-f557247e9c9e') {
|
||||
s3Upload(bucket:"aidancbrady", path:"mekanism/${env.BUILD_ID}", includePathPattern:'**/*', workingDir:'output')
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Cleanup') {
|
||||
steps{
|
||||
dir('output') {
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user