I am trying to generate code from RhapsodyCL using a batch script. When I run this batch script using cmd, the code is generated just fine but when I try to generate code via Jenkins I am getting error in the Jenkins build output which I think is because of trying to start RhapsodyCL due to 'license not found'.
The error in Jenkins console output looks like:
11:33:10 C:\Test>rhapsodyCL.exe -f C:\Test1\Test-BitBucket\script.bat
11:33:13
11:33:13 C:\Test>exit -1
-1 is the rhapsody return code for license not found.
So is this a Jenkins issue that it can not find the Rhapsody license ? Or is it something else ?
There are not many details in your question but rhapsody code generation via jenkins has worked for me in the past so:
Is it rhapsody installed for All Users in the jenkins machine?
Related
I am new to Jenkins and GITHUB.I have configured Jenkins with GITHUB and I don't see any issues with configuration.
I am running the file using windows batch
My commands are -
javac HelloJenkins.java
java HelloJenkins
Can someone tell me where am I going wrong?
enter image description here
I am a Jenkins newbie, so I am sorry if this question looks so. I would like to execute batch command from Jenkins master, which can execute script stored into Jenkins file system, so NOT into workspace created by Jenkins into my local D:/... .
I am trying from Execute Windows batch command field:
start https://our.jenkins.in.company.cz/var/jenkins_home/HELLO/hello.py
but Jenkins cannot find the file:
HTTP ERROR 404 Not Found
URI: /var/jenkins_home/HELLO/hello.py
STATUS: 404
MESSAGE: Not Found
SERVLET: Stapler
R/W/X rights for the script are allowed.
Please let me know how to achieve the right way.
Thank you very very much.
I assume the python was installed on the machine.
May you can run the script with the following command:
python /home/some-user/mount/HELLO/hello.py
But I am little bit confused, because you wrote about an Windows batch command and "D:/" path which assume you work on windows system but /home/some-user/mount/HELLO/hello.py assume something is linux based system.
The start as I see works with .exe runnable, you need to tell exactly to run a script with python, this is the first part of the command.
If you using windows with linux subsystem, may you can run something like this as I remember correctly:
python D:\windowspath_to_subsytem\home\some-user\mount\HELLO\hello.py
My source code is written in scala. I have used sbt-jacoco sbt plugin of version 3.0.3 for code coverage. Jenkins plugin used is JaCoCo Plugin of version 3.0.1
I have implemented jacoco within my Jenkinsfile as :
step([$class: 'JacocoPublisher', sourcePattern: '**/src'])
The plugin works perfectly fine , shows the code percentages covered and missed. But when I go to check the actual lines of code covered through the Jenkins UI, I get the above error "Error while reading the sourcefile!"
Would you help me figure out what I am doing wrong?
Attached screenshots
look at jenkins log (usually at /var/log/jenkins/jenkins.log) for exceptions like java.io.FileNotFoundException to figure out where the plugin think the file located at, or any other errors while trying to read the file.
what solve it for me was setting the sourcePattern to '**/src/*/java'
which by default it is set to '**/src/main/java'
based on git
I'm relatively new to Jenkins and I'm attempting to add JSHint to my build process. Currently, I have the "Checkstyle Plug-in", "JSHint Report Plug-in", and "Violations plugin" installed on my Jenkins server. In 'Jenkins->Configure->Build->Execute shell' I have the following:
jshint --verbose --reporter=checkstyle > jshint.xml || exit 0
But I'm not exactly sure what's going on here. I found similar commands on other tutorials, but they were half-baked and didn't fully explain what this line of code does.
My goal is to run JSHint on my Jenkins server and send the output/results from JSHint to a file that I can then email to the admin. Any explanation about what the above line of code is suppose to do would be much appreciated. Any links or suggestions on how to add JSHint to a Jenkins build would also be helpful. Thanks ahead of time!
First part of command:
jshint --verbose --reporter=checkstyle
is jshint call with two parameters to turn on verbose mode and export report in checkstyle compatibile format. (Checkstyle is used because Jenkins was originaly designed for Java and Checkstyle is one of Java linting tools -> Jenkins Checkstyle plugin can pick up such formatted report)
Second part:
> jshint.xml
Is linux shell redirection from standard console into file called jshint.xml. This will save your report into file.
Third part:
|| exit 0
Seem to me unnecessary because it does logical OR with exit code values of commands on both sides. Command on right side is saving jshint report into file and command on right side returns 0 error code. So final error code seem to be output of command on right side anyway.
I am quite new to Jenkins and build, so my question can be silly.
I have installed Jenkins and successfully installed plugins under jenkins MSbuild, Nant and Clear Case plugin and its giving expected output.
Problem is I have my own makefiles created in NMAKE for each components and i want to compile it with cmake as it there is no other way to compile NMAKE under jenkins.
just not getting ways to do it, please tell me the plugin to be used to compile make files created using namke under jenkins.
Xshell plugin is the solution.
It runs all my NMAKE scripts on cmd and i get the expected output. thanks for prompt response slav.
Don't know anything about cmake/nmake, but there is a cmake plugin for Jenkins, and this blog post shows configuration and mentions nmake. Is that not enough?