Force updated pod template
Some checks reported errors
Homelab/java-spring-microservice/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
Homelab/java-spring-microservice/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
6a9037a2cf
commit
6beb059242
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -1,17 +1,17 @@
|
|||||||
|
|
||||||
|
def label = "mypod-${UUID.randomUUID().toString()}"
|
||||||
podTemplate(containers: [
|
podTemplate(containers: [
|
||||||
containerTemplate(
|
containerTemplate(
|
||||||
|
label: label,
|
||||||
name: 'maven',
|
name: 'maven',
|
||||||
image: 'maven:3.8.4-openjdk-11',
|
image: 'maven:3.8.4-openjdk-11',
|
||||||
command: 'sleep',
|
command: 'sleep',
|
||||||
args: '30d'
|
args: '30d'
|
||||||
)
|
)
|
||||||
]) {
|
]) {
|
||||||
node(POD_LABEL) {
|
node(label) {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
sh '''
|
// git credentialsId: 'jenkins-credentials', url: 'https://git.thejimnicholson.com/homelab/java-spring-microservice.git'
|
||||||
ls -l /etc/ssl/certs
|
|
||||||
wget https://git.thejimnicholson.com
|
|
||||||
'''
|
|
||||||
checkout scm
|
checkout scm
|
||||||
container('maven') {
|
container('maven') {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user