-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
Jenkins 2.346.3
Git plugin 4.11.5
Job DSL 1.81
We have the same seed job setup for our develop && production jenkins.
We noticed that the workspace path are different in these two jenkins. This discrepancy
affect reading job dsl script from the workspace.
We define the seed job in helm chart values.yaml
freeStyleJob('platform-seed-job') { description('CICD - Platform - Seed Job') displayName('CICD - Platform - Seed Job') scm { BbS { id("platform-seed-job") projectName("project_name") repositoryName("repo_name") serverId("bitbucket-server-instance") credentialsId("ID") sshCredentialsId("") branches { branchSpec { name("*/branch_name") } } gitTool(null) mirrorName("") } } steps { dsl { external('jenkins/jobs/platform_utils.groovy') external('jenkins/jobs/platform_seed_job.groovy') lookupStrategy('JENKINS_ROOT') removeAction('DELETE') } } triggers { BitbucketWebhookTriggerImpl { refTrigger(true) pullRequestTrigger(false) } } wrappers { preBuildCleanup() colorizeOutput() } }
In development environment logs : Building in workspace /var/jenkins_home/jobs/platform-seed-job/workspace
In production environment : Building in workspace /var/jenkins_home/workspace/platform-seed-job
When jenkins try to process job dsl, it will get file not found error in one of our jenkins environment.