Hi,
My company SAP holds several JaaS servers (e.g. eldorado.jaas-gcp.cloud.sap.corp , ugdev.jaas-gcp.cloud.sap.corp)
When I’m trying to run a job from a Kubernetes agent in eldorado.jaas-gcp.cloud.sap.corp server it’s failed to checkout to our private github server (github.wdf.sap.corp/devx-wing/devspace-scheduler.git) because lacking an SSL certificate.
The job script :
pipeline {
agent { kubernetes {
defaultContainer 'go'
yaml '''
apiVersion: v1
kind: Pod
spec:
containers:
- name: go
image: golang:1.17.1
command:
- cat
tty: true
'''
}
}
triggers {
cron('H 0 * * 0')
}
stages {
stage('stage1') {
steps {
script{
sh '''
echo "hello from stage 1"
'''
}
}
}
}
}
The error :
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential webidebot-github-token
Cloning the remote Git repository
Cloning repository https://github.wdf.sap.corp/devx-wing/devspace-scheduler.git
> git init /home/jenkins/agent/workspace/devspace-scheduler-ci # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://github.wdf.sap.corp/devx-wing/devspace-scheduler.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://github.wdf.sap.corp/devx-wing/devspace-scheduler.git/': server certificate verification failed. CAfile: none CRLfile: none
When it’s run on a ‘controller’ agent e.g -
agent { label ‘master’ }
it works as expected.
Also when I’m trying the same script in our other Jenkins server https://ugdev.jaas-gcp.cloud.sap.corp - it works.
This is the configuration of the SCM for the job :
(The reason I need to run it from a different agent is that I need several tools installed on it)
What can be the difference between the JaaSs so that it works on one of them and not on the other?
Thanks in advance,
Yehuda