Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Builder template for Gradle and Java 11 #7301

Open
zherkezhi opened this issue Aug 6, 2020 · 4 comments
Open

Builder template for Gradle and Java 11 #7301

zherkezhi opened this issue Aug 6, 2020 · 4 comments

Comments

@zherkezhi
Copy link

zherkezhi commented Aug 6, 2020

Since I am using Gradle as build tool, I would love to see a template for Gradle and Java 11.
There is already a builder for it here: https://console.cloud.google.com/gcr/images/jenkinsxio/GLOBAL/builder-gradle5-java11?gcrImageListsize=30

I think the following code in the values.yaml would solve the issue

    Gradle5-Java11:
       Name: gradle5-java11
       Label: jenkins-gradle5-java11
 DevPodPorts: 5005, 8080
 volumes:
   - type: Secret
     secretName: jenkins-maven-settings
     mountPath: /root/.m2/
   - type: Secret
     secretName: jenkins-docker-cfg
     mountPath: /home/jenkins/.docker
   - type: Secret
     secretName: jenkins-release-gpg
     mountPath: /home/jenkins/.gnupg
 EnvVars:
   JENKINS_URL: http://jenkins:8080
   _JAVA_OPTIONS: '-XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx192m'
   GIT_COMMITTER_EMAIL: jenkins-x@googlegroups.com
   GIT_AUTHOR_EMAIL: jenkins-x@googlegroups.com
   GIT_AUTHOR_NAME: jenkins-x-bot
   GIT_COMMITTER_NAME: jenkins-x-bot
   XDG_CONFIG_HOME: /home/jenkins
   DOCKER_CONFIG: /home/jenkins/.docker/
 ServiceAccount: jenkins
 # Node labels and tolerations for pod assignment
 # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
 # ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
 # NodeSelector:
 #   dedicated: jenkins-x-builder
 # Tolerations:
 # - effect: NoSchedule
 #   key: dedicated
 #   operator: Equal
 #   value: jenkins-x-builder
 Containers:
   Jnlp:
     Image: jenkinsci/jnlp-slave:3.26-1-alpine

     RequestCpu: "100m"
     RequestMemory: "128Mi"
     Args: '${computer.jnlpmac} ${computer.name}'
   Gradle:
     Image: gcr.io/jenkinsxio/builder-gradle5-java11:2.1.126-745
     Privileged: true
     RequestCpu: "400m"
     RequestMemory: "512Mi"
     LimitCpu: "1"
     LimitMemory: "1024Mi"
     # You may want to change this to true while testing a new image
     # AlwaysPullImage: true
     Command: "/bin/sh -c"
     Args: "cat"
     Tty: true
@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

@zherkezhi
Copy link
Author

/remove-lifecycle stale

@jenkins-x-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale

@jenkins-x-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants