123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- lastBuildCommit = ""
- pipeline {
- agent any
- parameters {
-
- booleanParam(name: "IS_BE")
- }
- stages
- stage('Pull Projects') {
- steps
- script
- if(currentBuild.previousBuild
- lastBuildCommit
- }
-
- cleanWs()
- dir('BepInEx') {
- git
- script
- longCommit
- }
- }
- }
- }
- stage('Build BepInEx') {
- steps
- dir('BepInEx') {
- sh
- sh
- }
- }
- }
- stage('Package') {
- steps
- dir('BepInEx/bin/dist') {
- archiveArtifacts
- }
- }
- }
- }
- post
- cleanup
- script
- env.LAST_BUILD
- }
- }
- success
- script
- lastBuildCommit
- if(params.IS_BE) {
- dir('BepInEx/bin/dist') {
- def
- withCredentials([string(credentialsId: 'bepisbuilds_addr', variable: 'BEPISBUILDS_ADDR')]) {
- sh
- }
- }
- }
- }
-
- withCredentials([string(credentialsId: 'discord-notify-webhook', variable: 'DISCORD_WEBHOOK')]) {
- discordSend
- }
- }
- failure
-
- withCredentials([string(credentialsId: 'discord-notify-webhook', variable: 'DISCORD_WEBHOOK')]) {
- discordSend
- }
- }
- }
- }
|