Protractor: Jenkins won't build project locally (mac)











up vote
1
down vote

favorite












As I'm trying to run a sample jenkins project from my machine. However, I it won't build my project locally.



I outline the set up in this jing video



What did I do wrong?
What specific steps should I use to fix it.



Error message from jenkins



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ cmd /c call /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins6260102670441278278.bat
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "cmd" (in directory "/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:249)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:935)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1819)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE


Build configuration



enter image description here



How I am executing the build



enter image description here



Code after using npm run protractor in shell



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins563599888073808645.sh
+ npm run protractor
npm ERR! path /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jacquelinegeorge/.npm/_logs/2018-11-13T10_38_04_562Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE


I made a modification to the build. I selected 'shell' (as I'm a mac user) not windows batch (as my tutor instructed). I also removed customer workspace from my configuration



Added the following command in 'build'




/Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining&&npm run
protractor




It still failed but this message was at least different.



I also tried this with and without ${JENKINS_HOME} under




General>Advanced>use custom workspace




Building in workspace /Users/jacquelinegeorge/.jenkins/workspace/Protractor
[Protractor] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh
+ /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining
/var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh: line 2: /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining: is a directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE









share|improve this question
























  • You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
    – yong
    Nov 15 at 12:38

















up vote
1
down vote

favorite












As I'm trying to run a sample jenkins project from my machine. However, I it won't build my project locally.



I outline the set up in this jing video



What did I do wrong?
What specific steps should I use to fix it.



Error message from jenkins



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ cmd /c call /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins6260102670441278278.bat
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "cmd" (in directory "/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:249)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:935)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1819)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE


Build configuration



enter image description here



How I am executing the build



enter image description here



Code after using npm run protractor in shell



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins563599888073808645.sh
+ npm run protractor
npm ERR! path /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jacquelinegeorge/.npm/_logs/2018-11-13T10_38_04_562Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE


I made a modification to the build. I selected 'shell' (as I'm a mac user) not windows batch (as my tutor instructed). I also removed customer workspace from my configuration



Added the following command in 'build'




/Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining&&npm run
protractor




It still failed but this message was at least different.



I also tried this with and without ${JENKINS_HOME} under




General>Advanced>use custom workspace




Building in workspace /Users/jacquelinegeorge/.jenkins/workspace/Protractor
[Protractor] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh
+ /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining
/var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh: line 2: /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining: is a directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE









share|improve this question
























  • You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
    – yong
    Nov 15 at 12:38















up vote
1
down vote

favorite









up vote
1
down vote

favorite











As I'm trying to run a sample jenkins project from my machine. However, I it won't build my project locally.



I outline the set up in this jing video



What did I do wrong?
What specific steps should I use to fix it.



Error message from jenkins



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ cmd /c call /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins6260102670441278278.bat
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "cmd" (in directory "/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:249)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:935)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1819)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE


Build configuration



enter image description here



How I am executing the build



enter image description here



Code after using npm run protractor in shell



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins563599888073808645.sh
+ npm run protractor
npm ERR! path /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jacquelinegeorge/.npm/_logs/2018-11-13T10_38_04_562Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE


I made a modification to the build. I selected 'shell' (as I'm a mac user) not windows batch (as my tutor instructed). I also removed customer workspace from my configuration



Added the following command in 'build'




/Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining&&npm run
protractor




It still failed but this message was at least different.



I also tried this with and without ${JENKINS_HOME} under




General>Advanced>use custom workspace




Building in workspace /Users/jacquelinegeorge/.jenkins/workspace/Protractor
[Protractor] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh
+ /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining
/var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh: line 2: /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining: is a directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE









share|improve this question















As I'm trying to run a sample jenkins project from my machine. However, I it won't build my project locally.



I outline the set up in this jing video



What did I do wrong?
What specific steps should I use to fix it.



Error message from jenkins



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ cmd /c call /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins6260102670441278278.bat
FATAL: command execution failed
java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
Caused: java.io.IOException: Cannot run program "cmd" (in directory "/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at hudson.Proc$LocalProc.<init>(Proc.java:249)
at hudson.Proc$LocalProc.<init>(Proc.java:218)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:935)
at hudson.Launcher$ProcStarter.start(Launcher.java:454)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1819)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE


Build configuration



enter image description here



How I am executing the build



enter image description here



Code after using npm run protractor in shell



Started by user Jacqueline George
Building in workspace /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining
[LocatorTraining] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins563599888073808645.sh
+ npm run protractor
npm ERR! path /Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jacquelinegeorge/.jenkins/$(JENKINS_HOME)/LocatorTraining/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jacquelinegeorge/.npm/_logs/2018-11-13T10_38_04_562Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE


I made a modification to the build. I selected 'shell' (as I'm a mac user) not windows batch (as my tutor instructed). I also removed customer workspace from my configuration



Added the following command in 'build'




/Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining&&npm run
protractor




It still failed but this message was at least different.



I also tried this with and without ${JENKINS_HOME} under




General>Advanced>use custom workspace




Building in workspace /Users/jacquelinegeorge/.jenkins/workspace/Protractor
[Protractor] $ /bin/sh -xe /var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh
+ /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining
/var/folders/2s/d8lh31wd3_7dx65htqzvpcv80000gn/T/jenkins8556486662152409824.sh: line 2: /Users/jacquelinegeorge/Documents/Jenkins/LocatorTraining: is a directory
Build step 'Execute shell' marked build as failure
Finished: FAILURE






jenkins protractor automated-tests






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 at 13:03

























asked Nov 12 at 11:18









fypnlp

249




249












  • You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
    – yong
    Nov 15 at 12:38




















  • You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
    – yong
    Nov 15 at 12:38


















You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
– yong
Nov 15 at 12:38






You missed the cd at the head of command. It should be cd /Users/JacquelineGeorge/Documents/Jenkins/LocatorTraining && npm run protractor
– yong
Nov 15 at 12:38














2 Answers
2






active

oldest

votes

















up vote
2
down vote













The failure is due to you choose build step of Execute window batch command. But your Jenkins slave machine (where your test script resides) is a linux.



You should choose Execute shell for that build step.






share|improve this answer























  • Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
    – fypnlp
    Nov 13 at 10:49












  • Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
    – yong
    Nov 13 at 13:59












  • I've updated the question as requested.
    – fypnlp
    Nov 13 at 14:42






  • 1




    Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
    – yong
    Nov 15 at 1:46






  • 1




    You missed the cd at the head of command.
    – yong
    Nov 15 at 12:38


















up vote
0
down vote













Ok, I'm going to to do a summary of this conversation.




  1. From your project page select configure


  2. Scroll down to build


  3. Under build select shell


  4. enter cd /Users/YourUserNameHere/YourProjectWorkSpace/ProjectFolder/FileName&&npm run protractor


  5. Save



When you click build now. Your project should now build locally from your machine.






share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261049%2fprotractor-jenkins-wont-build-project-locally-mac%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    The failure is due to you choose build step of Execute window batch command. But your Jenkins slave machine (where your test script resides) is a linux.



    You should choose Execute shell for that build step.






    share|improve this answer























    • Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
      – fypnlp
      Nov 13 at 10:49












    • Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
      – yong
      Nov 13 at 13:59












    • I've updated the question as requested.
      – fypnlp
      Nov 13 at 14:42






    • 1




      Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
      – yong
      Nov 15 at 1:46






    • 1




      You missed the cd at the head of command.
      – yong
      Nov 15 at 12:38















    up vote
    2
    down vote













    The failure is due to you choose build step of Execute window batch command. But your Jenkins slave machine (where your test script resides) is a linux.



    You should choose Execute shell for that build step.






    share|improve this answer























    • Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
      – fypnlp
      Nov 13 at 10:49












    • Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
      – yong
      Nov 13 at 13:59












    • I've updated the question as requested.
      – fypnlp
      Nov 13 at 14:42






    • 1




      Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
      – yong
      Nov 15 at 1:46






    • 1




      You missed the cd at the head of command.
      – yong
      Nov 15 at 12:38













    up vote
    2
    down vote










    up vote
    2
    down vote









    The failure is due to you choose build step of Execute window batch command. But your Jenkins slave machine (where your test script resides) is a linux.



    You should choose Execute shell for that build step.






    share|improve this answer














    The failure is due to you choose build step of Execute window batch command. But your Jenkins slave machine (where your test script resides) is a linux.



    You should choose Execute shell for that build step.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 14 at 0:50

























    answered Nov 13 at 2:22









    yong

    5,8361411




    5,8361411












    • Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
      – fypnlp
      Nov 13 at 10:49












    • Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
      – yong
      Nov 13 at 13:59












    • I've updated the question as requested.
      – fypnlp
      Nov 13 at 14:42






    • 1




      Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
      – yong
      Nov 15 at 1:46






    • 1




      You missed the cd at the head of command.
      – yong
      Nov 15 at 12:38


















    • Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
      – fypnlp
      Nov 13 at 10:49












    • Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
      – yong
      Nov 13 at 13:59












    • I've updated the question as requested.
      – fypnlp
      Nov 13 at 14:42






    • 1




      Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
      – yong
      Nov 15 at 1:46






    • 1




      You missed the cd at the head of command.
      – yong
      Nov 15 at 12:38
















    Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
    – fypnlp
    Nov 13 at 10:49






    Thank you for taking a minute to answer my question. I still can't get it to run. This is what I did link
    – fypnlp
    Nov 13 at 10:49














    Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
    – yong
    Nov 13 at 13:59






    Please show your jenkins job configuration by screenshot in your question. You can edit your question and add that screenshots. Also add the jenkins build log after you change to Execute linux shell
    – yong
    Nov 13 at 13:59














    I've updated the question as requested.
    – fypnlp
    Nov 13 at 14:42




    I've updated the question as requested.
    – fypnlp
    Nov 13 at 14:42




    1




    1




    Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
    – yong
    Nov 15 at 1:46




    Where is the jenkins master? If you use your machine as jenkins master, you are no need to config use custom workspace and you can put your script folder anywhere you want. For example you put your script folder under /Users/jacquelinegeorge/workspace/projectA, then you can use shell as following in Execute shell textbox: cd /Users/jacquelinegeorge/workspace/projectA && npm run protractor
    – yong
    Nov 15 at 1:46




    1




    1




    You missed the cd at the head of command.
    – yong
    Nov 15 at 12:38




    You missed the cd at the head of command.
    – yong
    Nov 15 at 12:38












    up vote
    0
    down vote













    Ok, I'm going to to do a summary of this conversation.




    1. From your project page select configure


    2. Scroll down to build


    3. Under build select shell


    4. enter cd /Users/YourUserNameHere/YourProjectWorkSpace/ProjectFolder/FileName&&npm run protractor


    5. Save



    When you click build now. Your project should now build locally from your machine.






    share|improve this answer

























      up vote
      0
      down vote













      Ok, I'm going to to do a summary of this conversation.




      1. From your project page select configure


      2. Scroll down to build


      3. Under build select shell


      4. enter cd /Users/YourUserNameHere/YourProjectWorkSpace/ProjectFolder/FileName&&npm run protractor


      5. Save



      When you click build now. Your project should now build locally from your machine.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Ok, I'm going to to do a summary of this conversation.




        1. From your project page select configure


        2. Scroll down to build


        3. Under build select shell


        4. enter cd /Users/YourUserNameHere/YourProjectWorkSpace/ProjectFolder/FileName&&npm run protractor


        5. Save



        When you click build now. Your project should now build locally from your machine.






        share|improve this answer












        Ok, I'm going to to do a summary of this conversation.




        1. From your project page select configure


        2. Scroll down to build


        3. Under build select shell


        4. enter cd /Users/YourUserNameHere/YourProjectWorkSpace/ProjectFolder/FileName&&npm run protractor


        5. Save



        When you click build now. Your project should now build locally from your machine.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 at 13:01









        fypnlp

        249




        249






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53261049%2fprotractor-jenkins-wont-build-project-locally-mac%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            鏡平學校

            ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

            Why https connections are so slow when debugging (stepping over) in Java?