forked from GeyserMC/Geyser
		
	Change Jenkins url and name to Open Collaboration (#1732)
This commit is contained in:
		
							parent
							
								
									eb5e4d79bb
								
							
						
					
					
						commit
						77de991bcf
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Jenkinsfile
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -66,7 +66,7 @@ pipeline {
 | 
			
		|||
            }
 | 
			
		||||
            deleteDir()
 | 
			
		||||
            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${changes}\n\n[**Artifacts on Jenkins**](https://ci.nukkitx.com/job/Geyser)", footer: 'Cloudburst 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.opencollab.dev/job/GeyserMC/job/Geyser)", footer: 'Open Collaboration Jenkins', link: env.BUILD_URL, successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'), title: "${env.JOB_NAME} #${currentBuild.id}", webhookURL: DISCORD_WEBHOOK
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
[](https://java.com/)
 | 
			
		||||
 | 
			
		||||
[](LICENSE)
 | 
			
		||||
[](https://ci.nukkitx.com/job/GeyserMC/job/Geyser/job/master/)
 | 
			
		||||
[](https://ci.opencollab.dev/job/GeyserMC/job/Geyser/job/master/)
 | 
			
		||||
[](http://discord.geysermc.org/)
 | 
			
		||||
[](http://hits.dwyl.io/Geyser/GeyserMC)
 | 
			
		||||
[](https://translate.geysermc.org/)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,7 +71,7 @@ public class VersionCommand extends GeyserCommand {
 | 
			
		|||
                Properties gitProp = new Properties();
 | 
			
		||||
                gitProp.load(FileUtils.getResource("git.properties"));
 | 
			
		||||
 | 
			
		||||
                String buildXML = WebUtils.getBody("https://ci.nukkitx.com/job/GeyserMC/job/Geyser/job/" + URLEncoder.encode(gitProp.getProperty("git.branch"), StandardCharsets.UTF_8.toString()) + "/lastSuccessfulBuild/api/xml?xpath=//buildNumber");
 | 
			
		||||
                String buildXML = WebUtils.getBody("https://ci.opencollab.dev/job/GeyserMC/job/Geyser/job/" + URLEncoder.encode(gitProp.getProperty("git.branch"), StandardCharsets.UTF_8.toString()) + "/lastSuccessfulBuild/api/xml?xpath=//buildNumber");
 | 
			
		||||
                if (buildXML.startsWith("<buildNumber>")) {
 | 
			
		||||
                    int latestBuildNum = Integer.parseInt(buildXML.replaceAll("<(\\\\)?(/)?buildNumber>", "").trim());
 | 
			
		||||
                    int buildNum = Integer.parseInt(gitProp.getProperty("git.build.number"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue