Following Commands are Kubernetes Imperative commands, Depending upon the CKA exams weightage.
Important links : https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-strong-getting-started-strong-
Following Commands are Kubernetes Imperative commands, Depending upon the CKA exams weightage.
Important links : https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-strong-getting-started-strong-
| def jobname = "the-job-name" | |
| def buildnum = 85 | |
| def job = Jenkins.instance.getItemByFullName(jobname) | |
| for (build in job.builds) { | |
| if (buildnum == build.getNumber().toInteger()){ | |
| if (build.isBuilding()){ | |
| build.doStop(); | |
| build.doKill(); | |
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
| // replace <name> with your values | |
| stage("Quality Gate"){ | |
| // get analysisId with the correct name of the build, this can take a while | |
| timeout(time: 3, unit: 'MINUTES') { | |
| waitUntil { | |
| try { | |
| result = httpRequest "http://<sonarqube-instance>/api/project_analyses/search?project=<project-name>:${env.BRANCH_NAME}" | |
| def analyses = readJSON text: result.content | |
| analysisId = analyses.analyses[0].key | |
| FROM centos/systemd | |
| MAINTAINER Oleg Snegirev <[email protected]> | |
| # Install packages | |
| RUN yum -y install openssh-server sudo nano epel-release openssl certmonger; systemctl enable sshd.service | |
| # Enable root and pos accounts | |
| RUN echo 'root:33103255235331325230' | chpasswd | |
| RUN adduser pos && \ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/out" /> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="13.0.1" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/out" /> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="13.0.1" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/out" /> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="13.0.1" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/out" /> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="13.0.1" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/out" /> | |
| </component> | |
| </project> |