# Jenkins - File path must be set with -file option error

**URL:** <https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907>\
**Category:** Ask a question\
**Created:** [May 7, 2024, 1:04pm UTC](https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907 "2024-05-07T13:04:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WorkingRobot95](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/workingrobot95/32/8124_2.png) [@WorkingRobot95](https://community.jenkins.io/u/WorkingRobot95)\
**Post date:** [May 7, 2024, 1:04pm UTC](https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907/1 "2024-05-07T13:04:47Z")

</div>

Hi,  
I’m new to Jenkins and trying to build a project but I keep getting this message in the console log, another colleague of mine have the same setup as mine and everything is working on his side.

I tried reinstalling everything but I still got the same result.

Console Log:

```auto
[BasicTest] $ C:\BMC\WorkbenchCLI\TotalTestFTCLI.bat -data C:\ProgramData\Jenkins\.jenkins\workspace\BasicTest\BMC-CliWkspc -host example -port 16196 -u test -p ******* -f C:\Users\BasicTest -R -G -cfgdir C:\Users\TotalTestConfiguration -v 6 -l jenkins -U -loglevel ALL -norep -nosq -noju
Using JAVA_HOME: C:\Program Files\Java\jdk-11
Using customized WORKSPACE: C:\ProgramData\Jenkins\.jenkins\workspace\BasicTest\BMC-CliWkspc
        1 file(s) copied.
Using configuration location : C:\WorkbenchCLI\
 
DevX Total Test Command Line Interface (CLI) 23.3.1.v20240305-1740_96 
TotalTestLogLevel changed to: ALL 
File path must be set with -file option 
CLI was unable to execute and is exiting now 
TotalTestFTCLI.bat exited with exit value = -1
Something went wrong when executing the Total Test Testing CLI, and therefore there is no test results to analyze
ERROR: Test failure
Test failure
ERROR: null
Finished: FAILURE

```

## Jenkins setup: Jenkins: 2.440.3 OS: Windows 11 - 10.0 Java: 11.0.21 - Oracle Corporation (Java HotSpot™ 64-Bit Server VM)

ant:497.v94e7d9fffa\_b\_9  
antisamy-markup-formatter:162.v0e6ec0fcfcf6  
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757  
asm-api:9.7-33.v4d23ef79fcc8  
bootstrap5-api:5.3.3-1  
bouncycastle-api:2.30.1.77-225.v26ea\_c9455fd9  
branch-api:2.1169.va\_f810c56e895  
build-timeout:1.32  
caffeine-api:3.1.8-133.v17b\_1ff2e0599  
checks-api:2.2.0  
cloudbees-folder:6.901.vb\_4c7a\_da\_75da\_3  
command-launcher:107.v773860566e2e  
commons-lang3-api:3.13.0-62.v7d18e55f51e2  
commons-text-api:1.11.0-109.vfe16c66636eb\_  
compuware-common-configuration:1.0.16  
compuware-ispw-operations:2.3.1  
compuware-scm-downloader:2.1.0  
compuware-strobe-measurement:1.0.4  
compuware-topaz-for-enterprise-data:1.1.1  
compuware-topaz-for-total-test:2.4.14  
compuware-topaz-utilities:1.0.9  
compuware-xpediter-code-coverage:1.0.8  
compuware-zadviser-api:1.0.4  
credentials:1337.v60b\_d7b\_c7b\_c9f  
credentials-binding:677.vdc9d38cb\_254d  
dark-theme:439.vdef09f81f85e  
delivery-pipeline-plugin:1.4.2  
display-url-api:2.204.vf6fddd8a\_8b\_e9  
durable-task:555.v6802fe0f0b\_82  
echarts-api:5.5.0-1  
email-ext:1806.v856a\_01a\_fa\_39a\_  
emailext-template:1.5  
font-awesome-api:6.5.2-1  
git:5.2.1  
git-client:4.7.0  
github:1.38.0  
github-api:1.318-461.v7a\_c09c9fa\_d63  
github-branch-source:1789.v5b\_0c0cea\_18c3  
gradle:2.11  
gson-api:2.10.1-15.v0d99f670e0a\_7  
instance-identity:185.v303dc7c645f9  
ionicons-api:73.vb\_f522f227457  
jackson2-api:2.17.0-379.v02de8ec9f64c  
jakarta-activation-api:2.1.3-1  
jakarta-mail-api:2.1.3-1  
javax-activation-api:1.2.0-6  
javax-mail-api:1.6.2-9  
jaxb:2.3.9-1  
jdk-tool:73.vddf737284550  
jjwt-api:0.11.5-112.ve82dfb\_224b\_a\_d  
joda-time-api:2.12.7-29.v5a\_b\_e3a\_82269a\_  
jquery:1.12.4-1  
jquery3-api:3.7.1-2  
json-api:20240303-41.v94e11e6de726  
json-path-api:2.9.0-58.v62e3e85b\_a\_655  
junit:1265.v65b\_14fa\_f12f0  
ldap:725.v3cb\_b\_711b\_1a\_ef  
mailer:472.vf7c289a\_4b\_420  
matrix-auth:3.2.2  
matrix-project:822.824.v14451b\_c0fd42  
mina-sshd-api-common:2.12.1-101.v85b\_e08b\_780dd  
mina-sshd-api-core:2.12.1-101.v85b\_e08b\_780dd  
okhttp-api:4.11.0-172.vda\_da\_1feeb\_c6e  
pam-auth:1.10  
parameterized-trigger:787.v665fcf2a\_830b\_  
pipeline-build-step:540.vb\_e8849e1a\_b\_d8  
pipeline-github-lib:42.v0739460cda\_c4  
pipeline-graph-analysis:216.vfd8b\_ece330ca\_  
pipeline-groovy-lib:704.vc58b\_8890a\_384  
pipeline-input-step:495.ve9c153f6067b\_  
pipeline-milestone-step:119.vdfdc43fc3b\_9a\_  
pipeline-model-api:2.2198.v41dd8ef6dd56  
pipeline-model-definition:2.2198.v41dd8ef6dd56  
pipeline-model-extensions:2.2198.v41dd8ef6dd56  
pipeline-rest-api:2.34  
pipeline-stage-step:312.v8cd10304c27a\_  
pipeline-stage-tags-metadata:2.2198.v41dd8ef6dd56  
pipeline-stage-view:2.34  
plain-credentials:179.vc5cb\_98f6db\_38  
plugin-util-api:4.1.0  
resource-disposer:0.23  
scm-api:690.vfc8b\_54395023  
script-security:1336.vf33a\_a\_9863911  
snakeyaml-api:2.2-111.vc6598e30cc65  
ssh-credentials:337.v395d2403ccd4  
ssh-slaves:2.948.vb\_8050d697fec  
sshd:3.322.v159e91f6a\_550  
structs:337.v1b\_04ea\_4df7c8  
theme-manager:215.vc1ff18d67920  
timestamper:1.26  
token-macro:400.v35420b\_922dcb\_  
trilead-api:2.142.v748523a\_76693  
variant:60.v7290fc0eb\_b\_cd  
workflow-aggregator:596.v8c21c963d92d  
workflow-api:1291.v51fd2a\_625da\_7  
workflow-basic-steps:1058.vcb\_fc1e3a\_21a\_9  
workflow-cps:3894.3896.vca\_2c931e7935  
workflow-durable-task-step:1336.v768003e07199  
workflow-job:1400.v7fd111b\_ec82f  
workflow-multibranch:773.vc4fe1378f1d5  
workflow-scm-step:427.v4ca\_6512e7df1  
workflow-step-api:657.v03b\_e8115821b\_  
workflow-support:907.v6713a\_ed8a\_573  
ws-cleanup:0.45

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [May 7, 2024, 2:57pm UTC](https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907/2 "2024-05-07T14:57:49Z")

</div>

Does the command work when you run it directly on the command line outside of Jenkins?

---

<div class="post-metadata">

**Author:** ![WorkingRobot95](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/workingrobot95/32/8124_2.png) [@WorkingRobot95](https://community.jenkins.io/u/WorkingRobot95)\
**Post date:** [May 12, 2024, 8:08am UTC](https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907/3 "2024-05-12T08:08:45Z")

</div>

Hey  
Thanks a lot, when I used the command in the windows command line I got a better error explanation and I fixed the issue.

the issue was that my user id access was revoked.

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [May 13, 2024, 4:25pm UTC](https://community.jenkins.io/t/jenkins-file-path-must-be-set-with-file-option-error/14907/4 "2024-05-13T16:25:11Z")

</div>

Thanks for the feedback. 👍
