jenkinsci / plasticscm-plugin

A plugin for Jenkins to be able to use Plastic SCM
MIT License
15 stars 31 forks source link

Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository #69

Closed warobo2024 closed 1 year ago

warobo2024 commented 1 year ago

Jenkins and plugins versions report

Jenkins: 2.418 OS: Windows Server 2019 - 10.0 Java: 17.0.2 - Oracle Corporation (OpenJDK 64-Bit Server VM)

ant:497.v94e7d9fffa_b_9 antisamy-markup-formatter:159.v25bc67cd35fb apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 artifactory:3.18.8 audit-trail:333.vb_e1b_b_0f1238c authentication-tokens:1.53.v1c90fd9191ab authorize-project:1.7.0 blueocean:1.27.5 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.5 blueocean-commons:1.27.5 blueocean-config:1.27.5 blueocean-core-js:1.27.5 blueocean-dashboard:1.27.5 blueocean-display-url:2.4.2 blueocean-events:1.27.5 blueocean-git-pipeline:1.27.5 blueocean-github-pipeline:1.27.5 blueocean-i18n:1.27.5 blueocean-jira:1.27.5 blueocean-jwt:1.27.5 blueocean-personalization:1.27.5 blueocean-pipeline-api-impl:1.27.5 blueocean-pipeline-editor:1.27.5 blueocean-pipeline-scm-api:1.27.5 blueocean-rest:1.27.5 blueocean-rest-impl:1.27.5 blueocean-web:1.27.5 bootstrap5-api:5.3.0-1 bouncycastle-api:2.29 branch-api:2.1122.v09cb_8ea_8a_724 build-environment:1.7 build-name-setter:2.3.0 build-timeout:1.31 caffeine-api:3.1.6-115.vb_8b_b_328e59d8 checks-api:2.0.0 cloudbees-bitbucket-branch-source:825.va_6a_dc46a_f97d cloudbees-folder:6.815.v0dd5a_cb40e0e command-launcher:100.v2f6722292ee8 commons-lang3-api:3.12.0-36.vd97de6465d5b commons-text-api:1.10.0-36.vc008c8fcda7b config-file-provider:952.va_544a_6234b_46 configurationslicing:548.ve92d48e66b_f8 credentials:1271.v54b1c2c6388a credentials-binding:631.v861c06d062b_4 dashboard-view:2.487.vcf0ff9008a_c0 data-tables-api:1.13.5-1 discard-old-build:1.07 disk-usage:1.1 display-url-api:2.3.7 docker-commons:439.va_3cb_0a_6a_fb_29 docker-workflow:563.vd5d2e5c4007f dtkit-api:3.0.2 durable-task:513.vc48a_a_075a_d93 echarts-api:5.4.0-5 email-ext:2.100 external-monitor-job:207.v98a_a_37a_85525 favorite:2.4.2 font-awesome-api:6.4.0-2 git:5.2.0 git-client:4.4.0 git-server:99.va_0826a_b_cdfa_d github:1.37.1 github-api:1.314-431.v78d72a_3fe4c3 github-branch-source:1728.v859147241f49 gradle:2.8.2 handy-uri-templates-2-api:2.1.8-22.v77d5b_75e6953 htmlpublisher:1.31 instance-identity:173.va_37c494ec4e5 ionicons-api:56.v1b_1c8c49374e ivy:2.5 jackson2-api:2.15.2-350.v0c2f3f8fc595 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:233.vdc1a_ec702cff javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:66.vd8fa_64ee91b_d jenkins-design-language:1.27.5 jersey2-api:2.40-1 jira:3.10 jjwt-api:0.11.5-77.v646c772fddb_0 jobConfigHistory:1227.v7a_79fc4dc01f jquery3-api:3.7.0-1 jsch:0.2.8-65.v052c39de79b_2 junit:1217.v4297208a_a_b_ce ldap:682.v7b_544c9d1512 lockable-resources:1184.va_6f2fc274b_e4 mailer:457.v3f72cb_e015e5 mapdb-api:1.0.9-28.vf251ce40855d matrix-auth:3.1.10 matrix-project:789.v57a_725b_63c79 maven-plugin:3.22 mercurial:1260.vdfb723cdcc81 mina-sshd-api-common:2.10.0-69.v28e3e36d18eb mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_ msbuild:1.30 next-executions:179.vb_e011d7e3b_64 nexus-jenkins-plugin:3.16.510.v4d23e22cf563 octopusdeploy:4.0.0 okhttp-api:4.11.0-145.vcb_8de402ef81 pam-auth:1.10 pipeline-build-step:505.v5f0844d8d126 pipeline-github-lib:42.v0739460cda_c4 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:656.va_a_ceeb_6ffb_f7 pipeline-input-step:468.va_5db_051498a_4 pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2144.v077a_d1928a_40 pipeline-model-definition:2.2144.v077a_d1928a_40 pipeline-model-extensions:2.2144.v077a_d1928a_40 pipeline-rest-api:2.33 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2144.v077a_d1928a_40 pipeline-stage-view:2.33 plain-credentials:143.v1b_df8b_d3b_e48 plasticscm-mergebot:0.16 plasticscm-plugin:4.2 plugin-usage-plugin:4.1 plugin-util-api:3.3.0 pubsub-light:1.17 resource-disposer:0.22 scm-api:676.v886669a_199aa script-security:1251.vfe552ed55f8d sidebar-link:2.2.4 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sse-gateway:1.26 ssh-credentials:305.v8f4381501156 ssh-slaves:2.877.v365f5eb_a_b_eec sshd:3.303.vefc7119b_ec23 structs:324.va_f5d6774f3a_d thinBackup:1.18 timestamper:1.26 token-macro:359.vb_cde11682e0c trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb workflow-aggregator:596.v8c21c963d92d workflow-api:1251.vd4889a_b_0a_065 workflow-basic-steps:1017.vb_45b302f0cea workflow-cps:3731.ve4b_5b_857b_a_d3 workflow-durable-task-step:1278.v94b_dc2b_50c6f workflow-job:1316.vd2290d3341a_f workflow-multibranch:756.v891d88f2cd46 workflow-scm-step:415.v434365564324 workflow-step-api:639.v6eca_cd8c04aa workflow-support:848.v5a_383b_d14921 ws-cleanup:0.45 xunit:3.1.2

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows Server 2019

Reproduction steps

Trigger groovy based pipeline job

Sample output 4.2 vs 4.4:

4.2

19:11:29 Started by user 19:11:29 Running as anonymous 19:11:30 Obtained ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository "SW/Products/Cortex/CortexRouter/HMIDriver@ssl://swengscm.opex.local:8088" path "/" smartbranch "${BRANCH}" 19:11:41 [Pipeline] Start of Pipeline 19:11:47 [Pipeline] node 19:11:47 Running on Jenkins in D:\JenkinsBuilds\Cortex\RouterBundleItems\HMIDriver\workspace ...

4.4

19:05:33 Started by user 19:05:33 Running as anonymous 19:05:37 ERROR: Unable to find ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository "SW/Products/Cortex/CortexRouter/HMIDriver@ssl://swengscm.opex.local:8088" path "/" smartbranch "${BRANCH}" 19:05:37 Finished: FAILURE

Expected Results

groovy file downloads and build proceed as with plugin 4.2 and earlier

Actual Results

see above

Anything else?

No response

mig42 commented 1 year ago

Hi @warobo2024, thanks for the report. Can you share the configuration you're using for this job?

Thanks!

warobo2024 commented 1 year ago

[A screenshot of a computer Description automatically generated]

[A screenshot of a computer Description automatically generated]

[A screenshot of a computer Description automatically generated]

[A screenshot of a computer Description automatically generated]

From: Miguel @.> Sent: Tuesday, August 15, 2023 13:21 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Hi @warobo2024https://github.com/warobo2024, thanks for the report. Can you share the configuration you're using for this job?

Thanks!

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1679321120, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMV4RCWGNV6ZPWGPJKLXVOVXFANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

Hi,

I wasn't able to reproduce the issue. I set up a pipeline job that retrieves the Jenkinsfile from SCM via lightweight checkout. I'm using the same path for the Jenkinsfile as you reported.

image

This is the job output, I'm running plugin version 4.4.

Started by user tester
Obtained ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository "default@host.docker.internal:18084" path "/" smartbranch "/main"
[Pipeline] Start of Pipeline
[Pipeline] node
Running on single-agent in /home/jenkins/agent/workspace/scmpipeline1

In my setup, jobs run in a separate Linux agent. The controller runs on Linux as well.

Please let me know if there's something I missed.

warobo2024 commented 1 year ago

We are running on Windows Jenkins, no separate build agent

From: Miguel @.> Sent: Wednesday, August 16, 2023 03:45 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Hi,

I wasn't able to reproduce the issue. I set up a pipeline job that retrieves the Jenkinsfile from SCM via lightweight checkout. I'm using the same path for the Jenkinsfile as you reported.

[image]https://user-images.githubusercontent.com/4534635/260936672-aa7b323b-1975-4fa0-9a1b-aca760b3ae70.png

This is the job output, I'm running plugin version 4.4.

Started by user tester

Obtained ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository @.**@.:18084>" path "/" smartbranch "/main"

[Pipeline] Start of Pipeline

[Pipeline] node

Running on single-agent in /home/jenkins/agent/workspace/scmpipeline1

In my setup, jobs run in a separate Linux agent. The controller runs on Linux as well.

Please let me know if there's something I missed.

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680122607, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMUTAKV3UOXZ2LPQNZDXVR3A7ANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

Thanks for the update! Could you try to upload the screenshots from your previous response? It looks like they were discarded by the email service when you replied to the PR that way.

warobo2024 commented 1 year ago

I'm sorry that the screenshots from my first email did not make it through.

I'll do you one better: Attached is rudimentary groovy file that only tries to download a repo and then run a batch file. We run it from D:\Program Files(x86)\Jenkins\jobs\Utility\jobs\JenkinsPluginTest

Plugin 4.2 output: [2023-08-16T12:03:57.365Z] Started by user Rob Gougher [2023-08-16T12:03:57.366Z] Running as anonymous [2023-08-16T12:03:58.460Z] Obtained ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository @.**@.://swengscm.opex.local:8088> path "/" smartbranch "/main" [2023-08-16T12:03:58.506Z] [Pipeline] Start of Pipeline [2023-08-16T12:03:58.865Z] [Pipeline] node [2023-08-16T12:03:58.882Z] Running on Jenkins in D:\JenkinsBuilds\Utility\JenkinsPluginTest\workspace [2023-08-16T12:03:58.941Z] [Pipeline] { [2023-08-16T12:03:59.051Z] [Pipeline] stage [2023-08-16T12:03:59.057Z] [Pipeline] { (Clean Old Workspace) [2023-08-16T12:03:59.182Z] [Pipeline] deleteDir [2023-08-16T12:04:10.354Z] [Pipeline] } [2023-08-16T12:04:10.859Z] [Pipeline] // stage [2023-08-16T12:04:11.105Z] [Pipeline] stage [2023-08-16T12:04:11.136Z] [Pipeline] { (Checkout) [2023-08-16T12:04:11.500Z] [Pipeline] checkout [2023-08-16T12:04:11.614Z] [CortexHMI_UnrealEngine] $ cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl://swengscm.opex.local:8088 ...

Plugin 4.4 output:

[2023-08-16T11:56:41.527Z] Started by user Rob Gougher

[2023-08-16T11:56:41.527Z] Running as anonymous

[2023-08-16T11:56:45.595Z] ERROR: Unable to find ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository @.**@.://swengscm.opex.local:8088> path "/" smartbranch "/main"

[2023-08-16T11:56:45.657Z] Finished: FAILURE

From: Miguel @.> Sent: Wednesday, August 16, 2023 08:02 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Thanks for the update! Could you try to upload the screenshots from your previous response? It looks like they were discarded by the email service when you replied to the PR that way.

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680474347, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMXPQTIBMRADS7DEK5DXVSZCBANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

I'll try reproducing in a Windows machine, there might be some platform-specific issues. But if you could share the configuration you're using, via screenshots or otherwise, it would be helpful to narrow things down. Also, I can't see any attachment to you message - perhaps replying to the PR by email is filtering it out?

warobo2024 commented 1 year ago

I see. It sounds like my attachments are being stripped. Can you be more specific about how I can get them to you?

From: Miguel @.> Sent: Wednesday, August 16, 2023 09:02 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

I'll try reproducing in a Windows machine, there might be some platform-specific issues. But if you could share the configuration you're using, via screenshots or otherwise, it would be helpful to narrow things down. Also, I can't see any attachment to you message - perhaps replying to the PR by email is filtering it out?

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680562715, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMVQQFRVADIXNMRZ7P3XVTADPANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

I think you can try answering in the PR page directly using the GitHub website, I was able to attach a screenshot simply by pasting it in the text area.

warobo2024 commented 1 year ago

config.zip

mig42 commented 1 year ago

Thanks, this is really helpful! I'm seeing that you're specifying a target directory for your only workspace, that could be the cause of the regression. We'll study the case and get back to you when we got news.

mig42 commented 1 year ago

According to the documentation:

If Lightweight checkout is selected the file is checked-out from the repository alone and placed in the root path, so you just need to specify the relative path to the script file within the repository. e.g. "Jenkinsfile" (if Jenkinsfile is in the root of the repository)

In your configuration, I'm seeing that you're using lightweight checkout, you're specifying CortexHMI_UnrealEngine as target subdirectory for the Plastic SCM workspace inside the Jenkins workspace path, and the script path is:

./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

My impression is that this could be an outdated script path, which includes an old subdirectory name that doesn't match the current subdirectory for the workspace. Is that your case?

mig42 commented 1 year ago

What's the actual location of the Jenkinsfile.groovy inside the repo? Is it /CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy?

warobo2024 commented 1 year ago

Yes.

SW-Products-Cortex-CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_MasterXSDValidate.groovy

From: Miguel @.> Sent: Wednesday, August 16, 2023 11:03 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

What's the actual location of the Jenkinsfile.groovy inside the repo? Is it /CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy?

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680785489, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMWE4QN6E2MJWMRHWRLXVTOJ3ANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

Then, the solution is to update the script so it describes its location in the targeted repo and branch, without prepending the subdirectory at the beginning. Just replace the current value with /CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy.

warobo2024 commented 1 year ago

Which script? Do mean the Jenkins project?

From: Miguel @.> Sent: Wednesday, August 16, 2023 11:22 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Then, the solution is to update the script so it describes its location in the targeted repo and branch, without prepending the subdirectory at the beginning. Just replace the current value with /CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy.

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680817901, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMX3H5N3D5GC7PKEVATXVTQQPANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

There's a "Script path" field In the pipeline job configuration when you select "Pipeline script from SCM" as your pipeline definition. Right now your value is:

./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

Whereas the actual path of the file inside the repository is:

CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

When you're using lightweight checkout, you need to specify the path of the file in the repository. You don't need to enter the subdirectory in that path. So, if you update the value of the "Script path" field with the path of the file in the repository, the plugin will pick it up.

image

warobo2024 commented 1 year ago

Ah. Pardon me.

The workspace path on my pc is SW-Products-Cortex-CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_MasterXSDValidate.groovy

Breaking it down: The repo path (we are using sub repos) is: SW-Products-Cortex-CortexHMI_UnrealEngine Within the CortexHMI_UnrealEngine repo, the path is CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_MasterXSDValidate.groovy

With 4.2 we can successfully use it 11:40:07 Started by user Rob Gougherhttp://engbldsvrecs:8080/user/rgougher 11:40:07 Running as anonymous 11:40:08 Obtained ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository @.**@.://swengscm.opex.local:8088> path "/" smartbranch "/main" 11:40:09 [Pipeline] Start of Pipeline 11:40:09 [Pipeline] node 11:40:09 Running on Jenkinshttp://engbldsvrecs:8080/computer/(built-in)/ in D:\JenkinsBuilds\Utility\JenkinsPluginTest\workspace

The exact string in our config is: ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

I do not believe that changing this will help. Can you articulate further?

From: Miguel @.> Sent: Wednesday, August 16, 2023 11:33 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

There's a "Script path" field In the pipeline job configuration when you select "Pipeline script from SCM" as your pipeline definition. Right now your value is:

./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

Whereas the actual path of the file inside the repository is:

CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

When you're using lightweight checkout, you need to specify the path of the file in the repository. You don't need to enter the subdirectory in that path. So, if you update the value of the "Script path" field with the path of the file in the repository, the plugin will pick it up.

[image]https://user-images.githubusercontent.com/4534635/261058537-a3a1aef9-2cce-42a7-8c2e-1b90107664ea.png

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680836456, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMVPTEIKLZDMUPRVHQDXVTR3NANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

OK, I'll test with those exact values in a Windows machine and get back to you.

Could you double check these parameters and confirm that they match your current configuration? Please keep in mind that the repository path in Plastic SCM might not be the same as the file structure you see in Jenkins, as you're specifying that the sources should be put inside a subdirectory.

warobo2024 commented 1 year ago

Here are the full contents of the config.xml I sent earlier, with the relevant sections highlighted:

<?xml version="1.1" encoding="UTF-8" standalone="no"?><flow-definition @.**@._f>>

/> > jenkins.model.BuildDiscarderProperty skipDefaultCheckout Verify that a Jenkins Plugin succeeds. false > http://jira.opex.local/> -1 10 -1 -1 false H/6 * * * 1-5 false

<definition class="org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition" @.**@._5b_857b_a_d3>> <scm class="com.codicesoftware.plugins.hudson.PlasticSCM" @.**@.>>

repository ***@***.******@***.***://swengscm.opex.local:8088> path "/" smartbranch "/main"
  <cleanup>DELETE</cleanup>
  <workingMode>NONE</workingMode>
  <credentialsId/>
  <firstWorkspace>
    <selector>repository ***@***.******@***.***://swengscm.opex.local:8088>

path "/" smartbranch "/main"

DELETE
    <directory>CortexHMI_UnrealEngine</directory>
  </firstWorkspace>
  <pollOnController>false</pollOnController>
  <directory>CortexHMI_UnrealEngine</directory>
  <useWorkspaceSubdirectory>false</useWorkspaceSubdirectory>
</scm>
<scriptPath>./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy</scriptPath>
<lightweight>true</lightweight>

false

From: Miguel @.> Sent: Wednesday, August 16, 2023 12:21 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

OK, I'll test with those exact values in a Windows machine and get back to you.

  • Repository name: SW/Products/Cortex/CortexHMI_UnrealEngine
  • Jenkinsfile location inside repo: /CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy
  • Job config

    • Script path: ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy
    • Directory: CortexHMI_UnrealEngine

Could you double check these parameters and confirm that they match your current configuration? Please keep in mind that the repository path in Plastic SCM might not be the same as the file structure you see in Jenkins, as you're specifying that the sources should be put inside a subdirectory.

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1680910534, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMT7YC5NBKSVTETYTXTXVTXPPANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

mig42 commented 1 year ago

The config.xml file tells me the scriptPath and directory values that you're using in your job configuration, but it doesn't say what's the path of the Jenkinsfile in your Plastic SCM repo. This is not the same as the path in your Jenkins workspace. I'd need that information to fully reproduce your case. Meanwhile, I'll try to reproduce using the values that I shared in my previous post until I have confirmation or correction from your side.

mig42 commented 1 year ago

I've tried two repro cases based on the information I got so far, and these are the results.

So, at this point, we can't progress treating your issue until you provide us the full details of your case. That includes:

Please submit these contents via the PR page in GitHub instead of via email, as it seems it's not really working for attachments and it leaves a trail of the previous response that introduces noise in the message.

Case 1

Plastic repo setup

Repository spec: SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 Branch name: option1 Repository path of Jenkinsfile: /CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy

Jenkins config

image

Job output [SUCCESS]

Started by user tester
Obtained ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084" path "/" smartbranch "option1"
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Clean Old Workspace)
[Pipeline] deleteDir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe workspace list --format={wkname}#{path}#{wkid} --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
repo_zero#c:\Users\User\wkspaces\repo_zero#fd012421-a347-4205-a5b7-c79653157a1e
devops#c:\Users\User\wkspaces\devops#b576ff6a-97ab-43e0-b4e0-6336a1ef517d
test-repo#c:\Users\User\wkspaces\test-repo#1f5ed47f-f6a1-4a23-b1ce-0685d046f573
pnunit#c:\Users\User\wkspaces\pnunit#a8ab0b45-34ee-4d1c-a67a-43e0c6199fdc
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe workspace create jenkins_7c4528094bba49f0bc9f820ac0e1b378 C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
Workspace jenkins_7c4528094bba49f0bc9f820ac0e1b378 has been correctly created
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe gwp C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --format={0}#{1}#{4} --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
jenkins_7c4528094bba49f0bc9f820ac0e1b378#c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine#c037fe83-b112-48f6-81d6-4263b71ad0f5
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe setselector --file=c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\selector16859445781090196078.txt c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
Searching for changed items in the workspace...
Setting the new selector...
Unity VCS is updating your workspace. Wait a moment, please...
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins
Downloading block of 2 files (638 bytes) from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
Downloaded c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\MasterXSDValidate.bat from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
Downloaded c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\Jenkinsfile_MasterXSDValidate.groovy from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe status --cset C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
cs:3@rep:SW/Products/Cortex/CortexHMI_UnrealEngine@repserver:10.211.55.2:18084
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe log cs:3@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 --xml=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_261107951066911425.xml --encoding=utf-8 --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe find changeset where changesetid=1 on repository 'SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084' --xml --file=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_3903866883689950844.xml --dateformat=yyyy'-'MM'-'dd'T'HH':'mm':'sszzz --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe log --from=cs:1@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 cs:3@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 --xml=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_17921240029377045486.xml --encoding=utf-8 --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Call_some_windows_bat_file)
[Pipeline] script
[Pipeline] {
[Pipeline] bat

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir>cd CortexHMI_UnrealEngine 

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine>C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\MasterXSDValidate.bat

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine>echo test 
test
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Case 2

Repository spec: SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 Branch name: option2 Repository path of Jenkinsfile: /CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy

Jenkins config

image

Job output [FAILURE]

Started by user tester
ERROR: Unable to find ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_MasterXSDValidate.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084" path "/" smartbranch "option2"
Finished: FAILURE
warobo2024 commented 1 year ago

I believe I have already answered this in an earlier email. To repeat:

The workspace path on my pc is SW-Products-Cortex-CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_MasterXSDValidate.groovy Breaking it down: The repo path (we are using sub repos) is: SW-Products-Cortex-CortexHMI_UnrealEngine. Within the CortexHMI_UnrealEngine repo, the path (to the groovy file) is CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_MasterXSDValidate.groovy

I'm sorry but I don't understand what info is lacking. Please bear with me and articulate.

In the meantime, here is what I would do in your position to reproduce:

From: Miguel @.> Sent: Thursday, August 17, 2023 02:42 To: jenkinsci/plasticscm-plugin @.> Cc: Gougher, Rob @.>; Mention @.> Subject: Re: [jenkinsci/plasticscm-plugin] Plugin 4.3 and 4.4 Unable to find groovy file from Plastic SCM repository (Issue #69)

[EXTERNAL EMAIL] This message has originated from an External sender. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

The config.xml file tells me the scriptPath and directory values that you're using in your job configuration, but it doesn't say what's the path of the Jenkinsfile in your Plastic SCM repo. This is not the same as the path in your Jenkins workspace. I'd need that information to fully reproduce your case. Meanwhile, I'll try to reproduce using the values that I shared in my previous post until I have confirmation or correction from your side.

- Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/plasticscm-plugin/issues/69#issuecomment-1681712252, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BB5OYMXLJN3Z46U5GHNMSITXVW4NJANCNFSM6AAAAAA3QLN52A. You are receiving this because you were mentioned.Message ID: @.**@.>>

warobo2024 commented 1 year ago

Apologies… Once more… (we cloned a somewhat more involved groovy (MasterXSDValidate.groovy) to create Jenkinsfile_PluginTest4344.groovy in order to expedite our testing of the 4.4 (and 4.3 and presumably upcoming 4.x plugins) ANYWHERE YOU SEE IN MY CORRESPONDENCE “MasterXSDValidate.groovy”, USE “Jenkinsfile_PluginTest4344.groovy” INSTEAD PLEASE.

So…..

The workspace path on my pc is SW-Products-Cortex-CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\Jenkinsfile_PluginTest4344.groovy Breaking it down: The repo path (we are using sub repos) is: SW-Products-Cortex-CortexHMI_UnrealEngine. Within the CortexHMI_UnrealEngine repo, the path (to the groovy file) is CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_PluginTest4344.groovy

We did upload a zip of the config.xml and the groovy file yesterday, but I will do so again. Please confirm that you are NOT seeing it as I do.

image

warobo2024 commented 1 year ago

config.zip

warobo2024 commented 1 year ago

One more note. Unless you also create the following file: MasterXSDValidate.bat at the root of the CortexHMI_UnrealEngine repo, the job will likely fail AFTER a successful download of the repo. So, if you want to see a full on success of the overall jenkins project as you test, you should create a simple bat of that name in that location.

However, the bug we are investigating occurs much earlier in the process.

mig42 commented 1 year ago

I can download the bundle, so I'll base my analysis in the files that are included in it.

I'm assuming that this is the path where the file lives inside the repo:

/CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy

The path you shared contained windows-like directory separators, so I can't be sure that this is correct. But it matches the path you specified in config.xml for scriptPath.

You haven't shared the full logs of the builds as I asked. It would make troubleshooting easier if you could include them in the issue.

Using the information in your last messsage, I cannot reproduce the issue in my Windows setup.

Output:

Started by user tester
Obtained ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084" path "/" smartbranch "option1"
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Clean Old Workspace)
[Pipeline] deleteDir
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe workspace list --format={wkname}#{path}#{wkid} --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
repo_zero#c:\Users\User\wkspaces\repo_zero#fd012421-a347-4205-a5b7-c79653157a1e
devops#c:\Users\User\wkspaces\devops#b576ff6a-97ab-43e0-b4e0-6336a1ef517d
test-repo#c:\Users\User\wkspaces\test-repo#1f5ed47f-f6a1-4a23-b1ce-0685d046f573
pnunit#c:\Users\User\wkspaces\pnunit#a8ab0b45-34ee-4d1c-a67a-43e0c6199fdc
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe workspace create jenkins_9566a2756d424681b429e8901f794b89 C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
Workspace jenkins_9566a2756d424681b429e8901f794b89 has been correctly created
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe gwp C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --format={0}#{1}#{4} --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
jenkins_9566a2756d424681b429e8901f794b89#c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine#dc3b6836-8c1e-4704-958c-5420b5d1ef3e
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe setselector --file=c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\selector6815087972593408103.txt c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
Searching for changed items in the workspace...
Setting the new selector...
Unity VCS is updating your workspace. Wait a moment, please...
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts
Created directory c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins
Downloading block of 2 files (638 bytes) from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
Downloaded c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\MasterXSDValidate.bat from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
Downloaded c:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\Jenkinsfile_PluginTest4344.groovy from SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe status --cset C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
cs:5@rep:SW/Products/Cortex/CortexHMI_UnrealEngine@repserver:10.211.55.2:18084
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe log cs:5@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 --xml=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_8606560402807719533.xml --encoding=utf-8 --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe find changeset where changesetid=3 on repository 'SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084' --xml --file=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_8440956479747163354.xml --dateformat=yyyy'-'MM'-'dd'T'HH':'mm':'sszzz --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[CortexHMI_UnrealEngine] $ C:\Users\User\AppData\Local\Jenkins\.jenkins\tools\plasticscm-cli\Default\cm.exe log --from=cs:3@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 cs:5@SW/Products/Cortex/CortexHMI_UnrealEngine@10.211.55.2:18084 --xml=C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\output_17362983763461722099.xml --encoding=utf-8 --server=10.211.55.2:18084 --workingmode=UPWorkingMode --username=tester ********
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Call_some_windows_bat_file)
[Pipeline] script
[Pipeline] {
[Pipeline] bat

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir>cd CortexHMI_UnrealEngine 

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine>C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine\MasterXSDValidate.bat

C:\Users\User\AppData\Local\Jenkins\.jenkins\workspace\testsubdir\CortexHMI_UnrealEngine>echo test 
test
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

Job config:

image

warobo2024 commented 1 year ago

Yes.

The workspace path on my pc is SW-Products-Cortex-CortexHMI_UnrealEngine\CortexHMI_UE4\CortexHMI\Scripts\Jenkins\Jenkinsfile_PluginTest4344.groovy Breaking it down: The repo path (we are using sub repos) is: SW-Products-Cortex-CortexHMI_UnrealEngine. Within the CortexHMI_UnrealEngine repo, the path (to the groovy file) is CortexHMI_UE4\CortexHMI\Scripts\Jenkins\ Jenkinsfile_PluginTest4344.groovy

I included the failure logs in my initial bug report as follows: Reproduction steps Trigger groovy based pipeline job

Sample output 4.2 vs 4.4:

4.2

19:11:29 Started by user 19:11:29 Running as anonymous 19:11:30 Obtained ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository "SW/Products/Cortex/CortexRouter/HMIDriver@ssl://swengscm.opex.local:8088" path "/" smartbranch "${BRANCH}" 19:11:41 [Pipeline] Start of Pipeline 19:11:47 [Pipeline] node 19:11:47 Running on Jenkins in D:\JenkinsBuilds\Cortex\RouterBundleItems\HMIDriver\workspace ...

4.4

19:05:33 Started by user 19:05:33 Running as anonymous 19:05:37 ERROR: Unable to find ./HMIDriver/Scripts/Jenkins/Jenkinsfile.groovy from Plastic SCM repository "SW/Products/Cortex/CortexRouter/HMIDriver@ssl://swengscm.opex.local:8088" path "/" smartbranch "${BRANCH}" 19:05:37 Finished: FAILURE

The key lines are the last two above.

The failure the new test job are similar. 11:38:49 Started by user Rob Gougher 11:38:49 Running as anonymous 11:38:54 ERROR: Unable to find CortexHMI_UE4\CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@ssl://swengscm.opex.local:8088" path "/" smartbranch "/main" 11:38:54 Finished: FAILURE

I would prefer not to include the logs for a success because of IP concerns.

warobo2024 commented 1 year ago

10:00:58 Started by user Rob Gougher 10:00:58 Running as anonymous 10:01:02 ERROR: Unable to find ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@ssl://swengscm.opex.local:8088" path "/" smartbranch "/main" 10:01:02 Finished: FAILURE

warobo2024 commented 1 year ago

just run failure with 4.4

warobo2024 commented 1 year ago

Success with 4.2 10:13:50 Started by user Rob Gougher 10:13:50 Running as anonymous 10:13:51 Obtained ./CortexHMI_UE4/CortexHMI/Scripts/Jenkins/Jenkinsfile_PluginTest4344.groovy from Plastic SCM repository "SW/Products/Cortex/CortexHMI_UnrealEngine@ssl://swengscm.opex.local:8088" path "/" smartbranch "/main" 10:13:56 [Pipeline] Start of Pipeline 10:14:00 [Pipeline] node 10:14:00 Running on Jenkins in D:\JenkinsBuilds\Utility\JenkinsPluginTest\workspace 10:14:01 [Pipeline] { 10:14:01 [Pipeline] stage 10:14:01 [Pipeline] { (Clean Old Workspace) 10:14:01 [Pipeline] deleteDir 10:14:10 [Pipeline] } 10:14:10 [Pipeline] // stage 10:14:10 [Pipeline] stage 10:14:10 [Pipeline] { (Checkout) 10:14:10 [Pipeline] checkout 10:14:10 [CortexHMI_UnrealEngine] $ cm workspace list --format={wkname}#{path}#{wkid} -wks=ssl://swengscm.opex.local:8088

warobo2024 commented 1 year ago

Looking at todays 4.2 success and 4.4 failure logs, both slash direction and casing appear to be the same.

mig42 commented 1 year ago

Unfortunately I'm not seeing any clue in the build output that could explain why I can't reproduce the error. Could you share the Jenkins logs? There should be exceptions there when the Plastic SCM plugin tries to obtain the Jenkinsfile. Those aren't printed in the build output.

warobo2024 commented 1 year ago

I do not see any activity related to builds when I go to Dashboard Manage Jenkins System Log All Jenkins Logs

Are you asking me to look elsewhere?

warobo2024 commented 1 year ago

I did a FindInFiles search on "PluginTest4344" in our Jenkins install folder in windows and had no hits other than the config.xml.

warobo2024 commented 1 year ago

I did a FindInFiles search on "PluginTest4344" in PlasticSCM5 and had no hits.

warobo2024 commented 1 year ago

The jenkins server in question is running cm.exe 8.0.16.3760

mig42 commented 1 year ago

The minimum required version for cm is 10.0.16.6112. Please upgrade your client and try building again to rule that out as a cause.

warobo2024 commented 1 year ago

upgrading to cm 10.0.16.6112 did the trick. Thank you.

warobo2024 commented 1 year ago

Closed.