-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
27 lines (26 loc) · 773 Bytes
/
Jenkinsfile
File metadata and controls
27 lines (26 loc) · 773 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
#!/usr/bin/env groovy
pipeline {
agent any
tools {
jdk "jdk-21"
}
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh './gradlew clean'
}
}
stage('Build and Deploy') {
steps {
echo 'Building and Deploying to Maven'
sh './gradlew build publish'
}
}
}
post {
always {
archiveArtifacts artifacts: 'fabric/build/libs/**.jar, neoforge/build/libs/**.jar, common/build/libs/**.jar', excludes: 'fabric/build/libs/**-dev-shadow.jar, neoforge/build/libs/**-dev-shadow.jar, common/build/libs/**-transform**.jar', followSymlinks: false, onlyIfSuccessful: true
}
}
}