Skip to content

Commit

Permalink
Configure shared library releng-pipeline globally across for all the scm
Browse files Browse the repository at this point in the history
  • Loading branch information
fredg02 committed Aug 23, 2024
1 parent 24d7e44 commit ae82fb4
Show file tree
Hide file tree
Showing 4 changed files with 635 additions and 2 deletions.
24 changes: 24 additions & 0 deletions instances/automotive.scm/jenkins/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,27 @@ unclassified:
name: "gitlab.eclipse.org"
serverUrl: "https://gitlab.eclipse.org"
webhookSecretCredentialsId: "gitlab-webhook-secret"
globalLibraries:
libraries:
- name: "releng-pipeline"
cachingConfiguration:
excludedVersionsStr: "main"
refreshTimeMinutes: 10080
defaultVersion: "refs/tags/v0.11.0"
retriever:
modernSCM:
scm:
gitlab:
id: "c772d333-af3d-4636-a31c-eb8294edb7d5"
projectOwner: "eclipsefdn/it/releng/jenkins-pipeline-service"
projectPath: "eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library"
serverName: "gitlab.eclipse.org"
traits:
- gitLabBranchDiscovery:
strategyId: 1
- gitLabOriginDiscovery:
strategyId: 2
- gitLabForkDiscovery:
buildMRForksNotMirror: false
strategyId: 2
trust: "gitLabTrustPermissions"
201 changes: 199 additions & 2 deletions instances/automotive.scm/target/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"docker.io/eclipsecbi/jiro-agent-centos-7:latest"
],
"context": "centos-7",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-centos-7:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"uid_entrypoint\", \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\" \nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-centos-7:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\"\nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"image": "jiro-agent-centos-7",
"registry": "docker.io",
"repository": "eclipsecbi",
Expand Down Expand Up @@ -316,7 +316,7 @@
"docker.io/eclipsecbi/jiro-agent-centos-8:latest"
],
"context": "centos-8",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-centos-8:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"uid_entrypoint\", \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\" \nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-centos-8:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\"\nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"image": "jiro-agent-centos-8",
"registry": "docker.io",
"repository": "eclipsecbi",
Expand Down Expand Up @@ -406,6 +406,203 @@
},
"startupScript": "/usr/local/bin/jenkins-agent",
"username": "jenkins"
},
"ubuntu-2204": {
"agentWorkdir": "/home/jenkins/jenkins-agent",
"docker": {
"aliases": [
"docker.io/eclipsecbi/jiro-agent-ubuntu-2204:latest"
],
"build_args": "['FROM_TAG': '22.04']",
"context": "ubuntu",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-ubuntu-2204:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\"\nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"image": "jiro-agent-ubuntu-2204",
"registry": "docker.io",
"repository": "eclipsecbi",
"tag": "remoting-3206.3208.v409508a_675ff"
},
"env": {
"JAVA_TOOL_OPTIONS": [ ],
"JENKINS_REMOTING_JAVA_OPTS": [
"-showversion",
"-XshowSettings:vm",
"-Xmx256m",
"-Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true",
"-Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true"
],
"OPENJ9_JAVA_OPTIONS": [
"-XX:+IgnoreUnrecognizedVMOptions",
"-XX:+IdleTuningCompactOnIdle",
"-XX:+IdleTuningGcOnIdle"
],
"_JAVA_OPTIONS": [ ]
},
"home": "/home/jenkins",
"kubernetes": {
"inheritYamlMergeStrategy": true,
"resources": {
"cpu": {
"limit": "2000m",
"request": "1000m"
},
"memory": {
"limit": "4096Mi",
"request": "4096Mi"
}
},
"volumes": [
{
"mounts": [
{
"mountPath": "/home/jenkins/.m2/settings-security.xml",
"subPath": "settings-security.xml"
},
{
"mountPath": "/home/jenkins/.m2/settings.xml",
"subPath": "settings.xml"
}
],
"name": "m2-secret-dir",
"secret": {
"name": "m2-secret-dir"
}
},
{
"configMap": {
"name": "m2-dir"
},
"mounts": [
{
"mountPath": "/home/jenkins/.m2/toolchains.xml",
"subPath": "toolchains.xml"
},
{
"mountPath": "/home/jenkins/.mavenrc",
"subPath": ".mavenrc"
}
],
"name": "m2-dir"
}
],
"yamlMergeStrategy": "merge"
},
"labels": [
"ubuntu-2204"
],
"maxHeap": "256m",
"mode": "EXCLUSIVE",
"name": "ubuntu-2204",
"remoting": {
"jar": "/usr/share/jenkins/agent.jar",
"startupScript": {
"name": "jenkins-agent",
"url": "https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent",
"version": "3206.vb_15dcf73f6a_9-12"
},
"url": "https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar",
"version": "3206.3208.v409508a_675ff"
},
"startupScript": "/usr/local/bin/jenkins-agent",
"username": "jenkins"
},
"ubuntu-2404": {
"agentWorkdir": "/home/jenkins/jenkins-agent",
"docker": {
"aliases": [
"docker.io/eclipsecbi/jiro-agent-ubuntu-2404:latest"
],
"build_args": "['FROM_TAG': '24.04']",
"context": "ubuntu",
"dockerfile": "#*******************************************************************************\n# Copyright (c) 2020 Eclipse Foundation and others.\n# This program and the accompanying materials are made available\n# under the terms of the Eclipse Public License 2.0\n# which is available at http://www.eclipse.org/legal/epl-v20.html,\n# or the MIT License which is available at https://opensource.org/licenses/MIT.\n# SPDX-License-Identifier: EPL-2.0 OR MIT\n#*******************************************************************************\nFROM docker.io/eclipsecbi/jiro-agent-ubuntu-2404:spec\n\n# These environment variables will be used in the uid_entrypoint script from the parent image\nENV USER_NAME=\"jenkins\"\nENV HOME=\"/home/jenkins\"\n\nVOLUME [ \"/home/jenkins\", ]\nWORKDIR \"/home/jenkins\"\nENTRYPOINT [ \"/usr/local/bin/jenkins-agent\" ]\n\nADD \"https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar\" \"/usr/share/jenkins/agent.jar\"\nADD \"https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent\" \"/usr/local/bin/jenkins-agent\"\n\nRUN sed -e 's/JAVA_OPTS/JAVA_OPTS \\$JENKINS_REMOTING_JAVA_OPTS/g' /usr/local/bin/jenkins-agent > /usr/local/bin/jenkins-agent.sed \\\n && mv /usr/local/bin/jenkins-agent.sed /usr/local/bin/jenkins-agent\n\nRUN chmod 755 \"$(dirname \"/usr/share/jenkins/agent.jar\")\" \\\n && chmod 644 \"/usr/share/jenkins/agent.jar\" \\\n && chmod ug+rx \"/usr/local/bin/jenkins-agent\" \\\n && chgrp 0 \"/usr/local/bin/jenkins-agent\"\n\nUSER 10001:0\n",
"image": "jiro-agent-ubuntu-2404",
"registry": "docker.io",
"repository": "eclipsecbi",
"tag": "remoting-3206.3208.v409508a_675ff"
},
"env": {
"JAVA_TOOL_OPTIONS": [ ],
"JENKINS_REMOTING_JAVA_OPTS": [
"-showversion",
"-XshowSettings:vm",
"-Xmx256m",
"-Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true",
"-Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true"
],
"OPENJ9_JAVA_OPTIONS": [
"-XX:+IgnoreUnrecognizedVMOptions",
"-XX:+IdleTuningCompactOnIdle",
"-XX:+IdleTuningGcOnIdle"
],
"_JAVA_OPTIONS": [ ]
},
"home": "/home/jenkins",
"kubernetes": {
"inheritYamlMergeStrategy": true,
"resources": {
"cpu": {
"limit": "2000m",
"request": "1000m"
},
"memory": {
"limit": "4096Mi",
"request": "4096Mi"
}
},
"volumes": [
{
"mounts": [
{
"mountPath": "/home/jenkins/.m2/settings-security.xml",
"subPath": "settings-security.xml"
},
{
"mountPath": "/home/jenkins/.m2/settings.xml",
"subPath": "settings.xml"
}
],
"name": "m2-secret-dir",
"secret": {
"name": "m2-secret-dir"
}
},
{
"configMap": {
"name": "m2-dir"
},
"mounts": [
{
"mountPath": "/home/jenkins/.m2/toolchains.xml",
"subPath": "toolchains.xml"
},
{
"mountPath": "/home/jenkins/.mavenrc",
"subPath": ".mavenrc"
}
],
"name": "m2-dir"
}
],
"yamlMergeStrategy": "merge"
},
"labels": [
"ubuntu-latest",
"ubuntu-2404"
],
"maxHeap": "256m",
"mode": "EXCLUSIVE",
"name": "ubuntu-2404",
"remoting": {
"jar": "/usr/share/jenkins/agent.jar",
"startupScript": {
"name": "jenkins-agent",
"url": "https://github.com/jenkinsci/docker-agent/raw/3206.vb_15dcf73f6a_9-12/jenkins-agent",
"version": "3206.vb_15dcf73f6a_9-12"
},
"url": "https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3206.3208.v409508a_675ff/remoting-3206.3208.v409508a_675ff.jar",
"version": "3206.3208.v409508a_675ff"
},
"startupScript": "/usr/local/bin/jenkins-agent",
"username": "jenkins"
}
}
}
Expand Down
Loading

0 comments on commit ae82fb4

Please sign in to comment.