Let us try to get some artifacts to deploy!
@@ -31,7 +31,7 @@ pipeline {
cat >.gradle/upload.gradle <<EOF
allprojects {
tasks.all {
- if (it.name != 'uploadArchives') {
+ if (it.name != \'uploadArchives\') {
enabled = false
}
}
@@ -41,11 +41,11 @@ pipeline {
deploy() {
echo "Uploading artifacts to $1"
if ./gradlew -I .gradle/upload.gradle \\
- -q \
- -PspongeRepo=$1 \
- -PspongeUsername=$2 \
- -PspongePassword=$3 \
- -PforgeJenkinsPass=${spongeJenkinsPassword} \
+ -s -q \\
+ -PspongeRepo=$1 \\
+ -PspongeUsername=$2 \\
+ -PspongePassword=$3 \\
+ -PforgeJenkinsPass=${spongeJenkinsPassword} \\
:uploadArchives
then
echo "Successfully uploaded artifacts to $1"
@@ -60,7 +60,7 @@ pipeline {
curl --user "$1:$2" http://files.minecraftforge.net/maven/manage/promote/latest/org.spongepowered.spongeforge/${BUILD_NUMBER}
}
- deploy "http://files.minecraftforge.net/maven/manage/upload" "${spongeMavenUsername}" "${spongeMavenPassword}" \
+ deploy "http://files.minecraftforge.net/maven/manage/upload" "${spongeMavenUsername}" "${spongeMavenPassword}" \\
&& promoteLatest "${spongeMavenUsername}" "${spongeMavenPassword}" &
pids="$!"
deploy "https://dl-indexer.spongepowered.org/maven/upload" "${spongeIndexerUsername}" "${spongeIndexerPassword}" &
@@ -73,8 +73,14 @@ pipeline {
exit $result
'''
+
+ }
}
}
}
+ post {
+ always {
+ archiveArtifacts artifacts: 'SpongeForge/build/libs/**/*.jar', fingerprint: true
+ }
}
}
\ No newline at end of file
