This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent any | |
| tools{ | |
| maven 'maven 3.9.8' | |
| } | |
| stages{ | |
| stage(build){ | |
| when{ | |
| changeset "**/worker/**" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vault write auth/kubernetes/config \ | |
| kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \ | |
| token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
| kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ | |
| issuer="https://kubernetes.default.svc.cluster.local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ingress: | |
| enabled: true | |
| tls: | |
| enabled: false | |
| secretName: "" | |
| annotations: {} | |
| # kubernetes.io/ingress.class: nginx | |
| # kubernetes.io/tls-acme: "true" | |
| ## allow large bom.xml uploads: | |
| # nginx.ingress.kubernetes.io/proxy-body-size: 10m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vault write auth/kubernetes/config \ | |
| kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \ | |
| token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
| kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ | |
| issuer="https://kubernetes.default.svc.cluster.local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################# LFD459:1.25.1 s_02/k8scp.sh ################ | |
| # The code herein is: Copyright the Linux Foundation, 2022 | |
| # | |
| # This Copyright is retained for the purpose of protecting free | |
| # redistribution of source. | |
| # | |
| # URL: https://training.linuxfoundation.org | |
| # email: [email protected] | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node { | |
| def app | |
| stage('Clone repository') { | |
| checkout scm | |
| } | |
| stage('Update GIT') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent none | |
| stages { | |
| stage('worker-build') { | |
| agent { | |
| docker { | |
| image 'maven:3.9.8-sapmachine-21' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent none | |
| stages{ | |
| stage("build"){ | |
| when{ | |
| changeset "**/worker/**" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| apt-get update | |
| apt-get install -yq \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg2 \ | |
| software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pipeline { | |
| agent { | |
| docker { image 'node:20.16.0-alpine3.20' } | |
| } | |
| stages { | |
| stage('Smoke Test') { | |
| steps { | |
| sh 'node --version' | |
| sleep 10 | |
| } |
NewerOlder