forked from VazkiiMods/Botania
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
31 lines (30 loc) · 691 Bytes
/
Jenkinsfile
File metadata and controls
31 lines (30 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
stage('Setup') {
steps {
echo 'Setting up Workspace'
sh './gradlew setupCIWorkspace'
}
}
stage('Build and Deploy') {
steps {
echo 'Building and Deploying to Maven'
sh './gradlew build sort uploadArchives'
}
}
}
post {
always {
archive 'build/libs/**.jar'
}
}
}