Karate-Jenkins- ERROR com.intuit.karate - . getting this error only when i run from jenkins - maven

iam running my karate code from Jenkins. where ia, getting below error.
ERROR com.intuit.karate - evaluation of 'karate-config.js' failed: javascript function call failed: ReferenceError: "karate" is not defined .
karate config file keeps on running.
iam using mvn test command to run the job.. even I have tried in Jenkins machine and mvn command works. only in through Jenkins iam getting issue.

Try to upgrade java version in Jenkins server.

Related

Laravel on AWS ElasticBeanstalk: running artisan migration command on deployment using .ebextensions in failing

I am deploying the Laravel application to the ElasticBeanstalk. I am running migration command using .ebextensions config on deployment.
I created a .extensions/01-migration.config file under the project root folder with the following content.
container_commands:
01_cd_html:
command: "cd /var/www/html"
02_php_artisan_migrate:
command: "php artisan migrate --force"
Then I deploy my application by running the following command.
eb deploy
Then I got the following error.
2020-07-13 11:51:59 INFO Environment update is starting.
2020-07-13 11:52:39 INFO Deploying new version to instance(s).
2020-07-13 11:52:49 ERROR [Instance: i-0a461ffb24bc26f52] Command failed on instance. An unexpected error has occurred [ErrorCode: 0000000001].
2020-07-13 11:52:49 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2020-07-13 11:52:49 ERROR Unsuccessful command execution on instance id(s) 'i-0a461ffb24bc26f52'. Aborting the operation.
2020-07-13 11:52:50 ERROR Failed to deploy application.
I could SSH into the server and run the command successfully. But it is just not working on deployment. What is wrong with my configuration and how can I fix it?
I solved the issue. I need to set the environment variables required by the commands in the option_settings. The command I am trying to run is migration command and it is using database credentials. So I specified the env variables for the database. That is weird, it should just work with ones specified in the ElasticBeanstalk console.

Issue while running npm run sonar

I am using sonar for analysis of nodejs code but when I run npm run sonar I get this error
Error occurred during initialization of VM
Failure when starting JFR on_vm_start
when when I run the command with my root user it works fine.What could be the reason for same?

Running gradle resulting in error on Jenkins

I'm trying to run a Jenkin's job (which is hosted on AWS).
If i try to run the gradlew command from ssh / command line it works just fine.
But When I try to run the Jenkins job with same commands which I used in commandline then its failing with following error:
Please HelP;
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type FileCollectionSnapshotterRegistry using TaskExecutionServices.createFileCollectionSnapshotterRegistry().
> Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter().

OpenWhisk build failure in local vagrant

Attempting to build my local openwhisk instance using the provided VagrantFile. I am using the ephemeral CouchDB container as my datasource.
During ant clean build deploy I get the following exceptions:
BUILD FAILED
/home/vagrant/openwhisk/build.xml:55: The following error occurred while executing this line:
/home/vagrant/openwhisk/build.xml:99: exec returned: 5
Further up the logs I see the following repeated under the installCatalog.sh section:
[exec] error: The supplied authentication is invalid
I've verified that the couchdb credentials in my cloudant-local.env are correct by executing some test curl commands. Not sure what other authentication credentials it could be complaining about. Any ideas?
http://dumptext.com/6QDOWNE3
When you use an ephemeral Couch instance, you need to start it after ant clean build and before deploy. Further, every time you start the container, you have to run the script tools/db/createImmortalDBs.sh to initialize the authentication store.
ant clean build
tools/db/couchdb/start-couchdb-box.sh ...
tools/db/createImmortalDBs.sh
ant deploy
BTW, Did you mean couchdb-local.env?

PhantomJS throws "Unable to access network" in TeamCity

I'm testing an AngularJS application and I've set up PhantomJS 2.0 to be executed in my TeamCity configration together with Jasmine 2.2.
The step in TeamCity is of type Command Line.
It points to the PhantomJS executable, and has two parameters set:
path\to\run-jasmine.js other\path\specRunner.html
When the build step is executed I get the following error in TeamCity:
"Unable to access network"
I've also tried to run it locally with cmd:
phantomjs.exe \different\path\run-jasmine.js other\path\specRunner.html
However I get the same error message...
Any ideas why this error is thrown?
I found out that I had to specify the paths with "/" rather than "\" .
This was the correct approach:
path/to/run-jasmine.js path/to/SpecRunner.html

Resources