Skip to content

Commit

Permalink
Bot Updating Templated Files
Browse files Browse the repository at this point in the history
  • Loading branch information
ImageGeniusCI committed May 28, 2023
1 parent 7c43419 commit e1658dd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ pipeline {
}
steps {
script{
sh '''#! /bin/bash
sh '''#!/bin/bash
WRONG_PERM=$(find ./ -path "./.git" -prune -o \\( -name "run" -o -name "finish" -o -name "check" \\) -not -perm -u=x,g=x,o=x -print)
if [[ -n "${WRONG_PERM}" ]]; then
echo "The following S6 service files are missing the executable bit; canceling the faulty build: ${WRONG_PERM}"
Expand All @@ -340,7 +340,8 @@ pipeline {
}
steps {
echo "Running on node: ${NODE_NAME}"
sh '''#! /bin/bash
sh '''#!/bin/bash
set -e
BUILDX_CONTAINER=$(head /dev/urandom | tr -dc 'a-z' | head -c12)
docker buildx create --driver=docker-container --name=${BUILDX_CONTAINER}
docker buildx build \
Expand Down Expand Up @@ -376,6 +377,7 @@ pipeline {
steps {
echo "Running on node: ${NODE_NAME}"
sh '''#!/bin/bash
set -e
BUILDX_CONTAINER=$(head /dev/urandom | tr -dc 'a-z' | head -c12)
docker buildx create --driver=docker-container --name=${BUILDX_CONTAINER}
docker buildx build \
Expand Down Expand Up @@ -407,7 +409,8 @@ pipeline {
sh '''#!/bin/bash
echo $GITHUB_TOKEN | docker login ghcr.io -u ImageGeniusCI --password-stdin
'''
sh '''#! /bin/bash
sh '''#!/bin/bash
set -e
BUILDX_CONTAINER=$(head /dev/urandom | tr -dc 'a-z' | head -c12)
docker buildx create --driver=docker-container --name=${BUILDX_CONTAINER}
docker buildx build \
Expand Down Expand Up @@ -496,7 +499,7 @@ pipeline {
environment name: 'EXIT_STATUS', value: ''
}
steps {
sh '''#! /bin/bash
sh '''#!/bin/bash
echo "Packages were updated. Cleaning up the image and exiting."
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
docker rmi ${GITHUBIMAGE}:amd64-${META_TAG} || :
Expand All @@ -520,7 +523,7 @@ pipeline {
}
}
steps {
sh '''#! /bin/bash
sh '''#!/bin/bash
echo "There are no package updates. Cleaning up the image and exiting."
if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" == "false" ]; then
docker rmi ${GITHUBIMAGE}:amd64-${META_TAG} || :
Expand Down Expand Up @@ -733,7 +736,7 @@ pipeline {
environment name: 'EXIT_STATUS', value: ''
}
steps {
sh '''#! /bin/bash
sh '''#!/bin/bash
# Function to retrieve JSON data from URL
get_json() {
local url="$1"
Expand Down

0 comments on commit e1658dd

Please sign in to comment.