Accidentally executed yo angular-fullstack in wrong path - yeoman-generator

By mistake I executed command "yo angular-fullstack" in wrong folder. I want to know how to revert/delete the creation of app in this folder.Thanks in advance

You can simply just delete and go back to the path you want and re-run "yo angular-fullstack".

Related

How to run bat file in jenkins

My jenkins is installed in C:\Program Files (x86)\Jenkins
bat file is located in C:\Users\Admin\workspace\demoWork\run.bat
When i run this bat file from cmd everything works fine. But when i try from jenkins executing batch command as mentioned in Image, Jenkins displays error as
Build step 'Execute Windows batch command' marked build as failure
Also inside jenkins folder automatically workspace folder gets created with Job title name. Can you guys please explain me in detail
Tatkal, you can't execute a command like in your image,
why don't you simply try
C:\users\admin\workspace\demowork\run.bat
or
call "C:\users\admin\workspace\demowork\run.bat"
"Also inside jenkins folder automatically workspace folder gets created with Job title name. Can you guys please explain me in detail" -
Jenkins creates folder with job title name automatically, saves jobs data and other build info... this is how it works. By default in jenkins job you can access your workspace using $WORKSPACE variable
You have put very little detail into this so I'm going by pure guess..
The Execute Windows batch command is to literally execute code, not execute a file.. to execute the file you could use this command :
start cmd.exe /c C:\myprj\mybat.bat
or you could take the contents of the .bat file and rewrite in in that command line..
The way Jenkins works is it creates its own workspace for each job, essentially to sandbox the environment, its a testing framework so it should be used to stage changes to code, which will then be pushed to your live(working) environment. People use it to automate some tasks, but this isnt the primary use of Jenkins.. if the above doesn't help you let me know more details of the error and I can try help you with it.
node {
bat 'D:\\gatling-charts-highcharts-bundle-3.0.2\\bin\\gatling.bat'
}

I can run npm in CMD, but can't in Conemu CMD

I set the system variable correctly as it seems, I restarted the PC few times. What's going on? How to force Conemu to cooperate?
Ok, I found the answer, of course few seconds after asking for help...
The PATH needs to be also added in the Conemu's settings. It's a little pain, if I'll need to do this every time when new variable should to be added. If you know some trick for it just comment me here...
Changing the path from the environment of conmenu settings by adding a link to nodejs is right, but deleting its previous link is not the best solution. Just add this C:\Program Files\nodejs; (or wherever your nodejs is located) like:
set PATH=%ConEmuBaseDir%\Scripts;C:\Program Files\nodejs;%PATH%

Nagios calling 'mvn test' in a project returns a error, but without details

I have a command defined as:
define command {
command_name xyz_minimal_check
command_line mvn --global-settings=(dir)/settings.xml -f (proj)/pom.xml -Dtest=ThingTest#testThing test
}
and a service defined to call this command. When it runs, I see:
[ERROR] Error executing Maven.
But I do not see any details in any log. Where might these be? I am sure there are some things I need to set up or some environment variables I have to provide to the command that nagios is running, but I cannot tell what they are. I have looked in the usual logs and see nothing specific to this service.
This is running on an Ubuntu 14.04 system. The usual ping and http services in nagios are working fine.
Well, the only place I can see the output of my command is in the web interface itself. Click on the service name and the output is in the description of the service there. It seems very strange that nothing goes into var/nagios.log or any other log file.....
And once I saw my output, I could see my errors. The issue was that I had to make it possible for the nagios user to run the "mvn test". My default, the permissions prevent this. The easiest way to do this is to create a directory owned by the nagios user, give it its own copy of the project, and give it its own .m2 directory. Then it will work.

Install Anywhere unsuccesfull scenario

In InstallAnywhere project, how it detects that installation is unsuccessful. It does not seem to see the log file for it. Does it check if the exception has occured anywhere then it will fail?
There is a variable named, $INSTALL_SUCCESS$. If the installation is successful, then you can get some value from this variable.

Robot framework doesn't see environment variable selenium_jar

i'm using mac
while using a pybot test.txt command i get an error msg: No executable path given, please add one to Environment Variable 'SELENIUM_SERVER_JAR'
but
i downloaded this jar from selenium site and did such things, nothing worked out:
added this folder path to /etc/paths;
added variable to etc/launchd.conf;
setenv SELENIUM_SERVER_JAR /Users/User/Downloads/SeleniumServer/selenium-server-standalone.jar
export PATH=$PATH:/Users/User/Downloads/SeleniumServer/;
after all of this i tried i run pybot test.txt and receiving the same error message.
Please, help, i just don't know how to configure robot framework to work with safari.
Based on the response to comments, it appears you set SELENIUM_JAR_FILE to the wrong value. It needs to be set to the full path of the jar file, not just the folder that contains the jar file.

Resources