forked from SpongePowered/SpongeForge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
24 lines (20 loc) · 1.09 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pipeline {
agent any
stages {
stage('Prepare') {
steps {
sh './gradlew --refresh-dependencies -s clean setupDecompWorkspace'
}
}
stage('Build') {
environment {
MAVEN = credentials('maven')
}
steps {
withCredentials([string(credentialsId: 'spongeKeyStore', variable: 'spongeKeyStore'), string(credentialsId: 'spongeKeyStoreAlias', variable: 'spongeKeyStoreAlias'), string(credentialsId: 'spongeKeyStorePass', variable: 'spongeKeyStorePass'), string(credentialsId: 'spongeKeyStorePass', variable: 'spongeKeyStoreKeyPass')]) {
sh '''./gradlew --refresh-dependencies -s -PspongeUsername=$MAVEN_USR -PspongePassword=$MAVEN_PSW -PspongeKeyStore=${spongeKeyStore} -PspongeKeyStoreAlias=${spongeKeyStoreAlias} -PspongeKeyStorePass=${spongeKeyStorePass} -PspongeKeyStoreKeyPass=${spongeKeyStoreKeyPass} -PspongeCertificateFingerprint=${spongeCertFingerprint} clean build -xsignShadowJar :uploadArchives'''
}
}
}
}
}