From 9b477fb7dcdf0c07e6c036fe0f3b47fa8c5d0de8 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Sun, 7 Jul 2024 09:21:03 -0500 Subject: [PATCH] updates minecraft --- build-minecraft.jenkins | 2 +- build-projectzomboid.jenkins | 80 ------------------------------------ 2 files changed, 1 insertion(+), 81 deletions(-) delete mode 100644 build-projectzomboid.jenkins diff --git a/build-minecraft.jenkins b/build-minecraft.jenkins index eb222f7..b7691f1 100644 --- a/build-minecraft.jenkins +++ b/build-minecraft.jenkins @@ -29,7 +29,7 @@ pipeline { steps { script { workspace = pwd() - paperVersion = "1.20.4" + paperVersion = "1.20.6" memoryMin = "1g" memoryMax = "32g" dockerFile = """FROM registry.c.test-chamber-13.lan/library/alpine:latest as builder diff --git a/build-projectzomboid.jenkins b/build-projectzomboid.jenkins deleted file mode 100644 index b1a0947..0000000 --- a/build-projectzomboid.jenkins +++ /dev/null @@ -1,80 +0,0 @@ -#!groovy - -def repository = "registry.c.test-chamber-13.lan" -def repositoryCreds = "harbor-repository-creds" - -def workspace -def dockerFile - -def label = "kubernetes-${UUID.randomUUID().toString()}" -def templateName = "pipeline-worker" - -pipeline { - agent { - kubernetes { - yaml functions.podYaml( - repo: repository, - templateName: templateName, - kaniko: true, - alpine: true - ) - } - } - - stages { - stage ('Initalize Jenkins') { - steps { - script { - workspace = pwd() - dockerFile = """ -FROM ${repository}/dockerhub/cm2network/steamcmd:latest - -LABEL org.opencontainers.image.authors="The_Spider " -LABEL org.opencontainers.image.title="projectzomboid" - -EXPOSE 16261/udp -EXPOSE 27015/udp - -RUN /home/steam/steamcmd/steamcmd.sh +quit && \\ - /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/ProjectZomboid +login anonymous +app_update 380870 validate +quit - -WORKDIR /home/steam/ProjectZomboid - -ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"] -""" - - } - } - } - - stage ('Build & Push') { - steps { - container ('kaniko') { - script { - declarativeFunctions.buildContainer( - repository: repository, - imageDest: "${repository}/library/project-zomboid:latest", - dockerFile: dockerFile, - repoCreds: repositoryCreds, - ) - } - } - } - } - - stage ('Delete Running Container') { - steps { - container ('alpine') { - script { - declarativeFunctions.functions.deletePod( - kubeAuth: "k8s-game-servers-access", - kubeURL: "https://k8s.test-chamber-13.lan:8043", - namespace: "game-servers", - selector: "app=project-zomboid" - ) - } - } - } - } - } -} \ No newline at end of file