From 2c574e479730fa4059add6b2e186d02eefda3f96 Mon Sep 17 00:00:00 2001 From: jeanjerome Date: Sun, 10 Sep 2023 10:17:16 +0200 Subject: [PATCH] ref(14): Change project name --- Jenkinsfile | 6 ++--- config/k8s/containers-init.yaml | 4 ++-- config/workflow-default.json | 2 +- contrib/build.sh | 4 ++-- contrib/make_package_json.sh | 4 ++-- docker/basic/alpine/Dockerfile.02 | 2 +- docker/basic/alpine/Dockerfile.03 | 2 +- docker/basic/scratch/Dockerfile | 2 +- docker/build-all-images.sh | 4 ++-- docs/src/lib/common.md | 2 +- docs/src/lib/log.md | 6 ++++- docs/src/lib/platform.md | 2 +- docs/src/lib/project.md | 2 +- docs/src/lib/tooling.md | 2 +- docs/src/lib/workflow.md | 2 +- package.json | 5 ++-- resources/config/banner/wild.txt | 12 ---------- resources/config/banner/wizard.txt | 12 ++++++++++ spec/lib/tooling_spec.sh | 2 +- spec/lib/workflow_spec.sh | 4 ++-- src/lib/log.sh | 2 +- src/lib/tooling.sh | 2 +- src/wild.sh | 6 ++--- test/config/test-workflow-default.json | 4 ++-- test/config/workflow-action.json | 2 +- test/config/workflow-default.json | 4 ++-- test/gitlab/install.sh | 29 +++++++++++++++-------- test/jenkins/README.md | 2 +- test/jenkins/config/casc.yaml | 8 +++---- test/jenkins/config/exported-jenkins.yaml | 4 ++-- vars/containerConfig.groovy | 2 +- vars/wildPipeline.groovy | 16 ++++++------- 32 files changed, 88 insertions(+), 74 deletions(-) delete mode 100644 resources/config/banner/wild.txt create mode 100644 resources/config/banner/wizard.txt diff --git a/Jenkinsfile b/Jenkinsfile index d4f2ce9..5107707 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ -library identifier: "wild@14-redesign-gitlab-ci-platform-for-testing", retriever: modernSCM( +library identifier: "wizard@14-redesign-gitlab-ci-platform-for-testing", retriever: modernSCM( [$class: 'GitSCMSource', - remote: 'https://github.com/scalastic/wild.git', - credentialsId: 'wild-github-token']) _ + remote: 'https://github.com/scalastic/wizard.git', + credentialsId: 'wizard-github-token']) _ wildPipeline() \ No newline at end of file diff --git a/config/k8s/containers-init.yaml b/config/k8s/containers-init.yaml index cbe009b..dde9557 100644 --- a/config/k8s/containers-init.yaml +++ b/config/k8s/containers-init.yaml @@ -3,8 +3,8 @@ metadata: pipeline: jenkinsfile spec: containers: - - name: 'wild' - image: scalastic/wild + - name: 'wizard' + image: scalastic/wizard command: - cat tty: true diff --git a/config/workflow-default.json b/config/workflow-default.json index 2249c3e..3c7a916 100644 --- a/config/workflow-default.json +++ b/config/workflow-default.json @@ -1,5 +1,5 @@ { - "id": "wild-test-001", + "id": "wizard-test-001", "name": "Sample Workflow for Testing", "version": "1.0.0", "actions": [ diff --git a/contrib/build.sh b/contrib/build.sh index 993b6ef..25fb2b3 100755 --- a/contrib/build.sh +++ b/contrib/build.sh @@ -8,8 +8,8 @@ set -euo pipefail export WILD_CWD="${PWD}" mkdir -p ./bin -rm -f ./bin/wild -./src/lib/ext/inline.sh --in-file ./src/wild.sh --out-file ./bin/wild +rm -f ./bin/wizard +./src/lib/ext/inline.sh --in-file ./src/wizard.sh --out-file ./bin/wizard grep -Ev "^[[:blank:]]*#[^!]|^[[:blank:]]*$" ./bin/wild > ./bin/wild.tmp mv ./bin/wild.tmp ./bin/wild chmod u+x ./bin/wild diff --git a/contrib/make_package_json.sh b/contrib/make_package_json.sh index 4a5d5ee..e3abafe 100755 --- a/contrib/make_package_json.sh +++ b/contrib/make_package_json.sh @@ -5,7 +5,7 @@ export LANG=C version() { - ./bin/wild --version + ./bin/wizard --version } files() { @@ -21,7 +21,7 @@ cat< diff --git a/vars/wildPipeline.groovy b/vars/wildPipeline.groovy index 62e38af..998900d 100644 --- a/vars/wildPipeline.groovy +++ b/vars/wildPipeline.groovy @@ -1,13 +1,13 @@ def call() { - string pod_init_label = "wild-init-1" - string pod_run_label = "wild-run-1" + string pod_init_label = "wizard-init-1" + string pod_run_label = "wizard-run-1" def k8s_containers_init = libraryResource('config/k8s/containers-init.yaml') def k8s_containers_run def colored_xterm = isColoredXterm() def env_variables_list = [ - "wild_path=./wild-workdir", + "wild_path=./wizard-workdir", "log_path=${env.WORKSPACE}/log", "current_git_branch=${env.BRANCH_NAME}", "colored_xterm=${colored_xterm}", @@ -20,7 +20,7 @@ def call() { ) { node(pod_init_label) { - logger.bannerLogo(libraryResource('config/banner/wild.txt')) + logger.bannerLogo(libraryResource('config/banner/wizard.txt')) stage('init') { @@ -33,16 +33,16 @@ def call() { checkout([ $class : 'GitSCM', - branches : [[name: env."library.wild.version"]], + branches : [[name: env."library.wizard.version"]], doGenerateSubmoduleConfigurations: false, extensions : [ [$class: 'CleanBeforeCheckout'], - [$class: 'RelativeTargetDirectory', relativeTargetDir: './wild-workdir'] + [$class: 'RelativeTargetDirectory', relativeTargetDir: './wizard-workdir'] ], submoduleCfg : [], userRemoteConfigs : [ - [credentialsId: 'wild-github-token', - url : 'https://github.com/scalastic/wild.git'] + [credentialsId: 'wizard-github-token', + url : 'https://github.com/scalastic/wizard.git'] ] ])