mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-20 23:39:27 +00:00
Update repo urls and jenkinsfile (#78)
Switched to the Open Collaboration repo
This commit is contained in:
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@@ -34,9 +34,40 @@ pipeline {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
script {
|
||||||
|
def changeLogSets = currentBuild.changeSets
|
||||||
|
def message = "**Changes:**"
|
||||||
|
|
||||||
|
if (changeLogSets.size() == 0) {
|
||||||
|
message += "\n*No changes.*"
|
||||||
|
} else {
|
||||||
|
def repositoryUrl = scm.userRemoteConfigs[0].url.replace(".git", "")
|
||||||
|
def count = 0;
|
||||||
|
def extra = 0;
|
||||||
|
for (int i = 0; i < changeLogSets.size(); i++) {
|
||||||
|
def entries = changeLogSets[i].items
|
||||||
|
for (int j = 0; j < entries.length; j++) {
|
||||||
|
if (count <= 10) {
|
||||||
|
def entry = entries[j]
|
||||||
|
def commitId = entry.commitId.substring(0, 6)
|
||||||
|
message += "\n - [`${commitId}`](${repositoryUrl}/commit/${entry.commitId}) ${entry.msg}"
|
||||||
|
count++
|
||||||
|
} else {
|
||||||
|
extra++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (extra != 0) {
|
||||||
|
message += "\n - ${extra} more commits"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
env.changes = message
|
||||||
|
}
|
||||||
deleteDir()
|
deleteDir()
|
||||||
withCredentials([string(credentialsId: 'geyser-discord-webhook', variable: 'DISCORD_WEBHOOK')]) {
|
withCredentials([string(credentialsId: 'geyser-discord-webhook', variable: 'DISCORD_WEBHOOK')]) {
|
||||||
discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}](${env.BUILD_URL})\n\n[**Artifacts on Jenkins**](https://ci.nukkitx.com/job/GeyserMC/job/Floodgate)", footer: 'NukkitX Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK
|
discordSend description: "**Build:** [${currentBuild.id}](${env.BUILD_URL})\n**Status:** [${currentBuild.currentResult}](${env.BUILD_URL})\n${changes}\n\n[**Artifacts on Jenkins**](https://ci.nukkitx.com/job/GeyserMC/job/Floodgate)", footer: 'Cloudburst Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nukkitx-release-repo</id>
|
<id>opencollab-release-repo</id>
|
||||||
<url>https://repo.nukkitx.com/maven-releases/</url>
|
<url>https://repo.opencollab.dev/maven-releases/</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
@@ -23,8 +23,8 @@
|
|||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nukkitx-snapshot-repo</id>
|
<id>opencollab-snapshot-repo</id>
|
||||||
<url>https://repo.nukkitx.com/maven-snapshots/</url>
|
<url>https://repo.opencollab.dev/maven-snapshots/</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
|
|||||||
8
pom.xml
8
pom.xml
@@ -45,13 +45,13 @@
|
|||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>releases</id>
|
<id>releases</id>
|
||||||
<name>nukkitx-releases</name>
|
<name>opencollab-releases</name>
|
||||||
<url>https://repo.nukkitx.com/maven-releases</url>
|
<url>https://repo.opencollab.dev/maven-releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>snapshots</id>
|
<id>snapshots</id>
|
||||||
<name>nukkitx-snapshots</name>
|
<name>opencollab-snapshots</name>
|
||||||
<url>https://repo.nukkitx.com/maven-snapshots</url>
|
<url>https://repo.opencollab.dev/maven-snapshots</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user