When I am running sourceanalyzer ant task for my java and jsp code analysis, I am getting error like:
Unable to create directory /export/home/olbbbld/.fortify/sca5.10/build
What causes this error?
This is a directory for SCA build cache. It seems to be that you do not have the required permission to create this directory.
Related
I have jenkins installed on a remote machine. How can I point my POM location in Jenkins. If I give the POM.xml location as C:\Automation\pom.xml I am getting the error no such file exists.
Started by user anonymous
Building in workspace C:\Users\Administrator\.jenkins\workspace\RegressionTestJob
Parsing POMs
ERROR: No such file C:\Automation\pom.xml
Perhaps you need to specify the correct POM file path in the project configuration?
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Did not find any matching files.
Finished: FAILURE
Your pom should be in your workspace, like how you would build your project in an IDE e.g. eclipse and when you build your project Jenkins will find the pom on its own in the workspace and build the project
Incase you still wish to specify the location you can use the -f option
mvn -f PomFile.xml
Hope it helps :)
I am trying to use Flyway in my Ant project to run DDL scripts. I managed to configure the classpath so that Flyway sees the migration scripts. When I run the flyway:migrate task, I get this exception:
Unable to obtain resource from (...)/src/ddl/V1__create_tables_logging.sql: java.util.zip.ZipException: error in opening zip file
[flyway:migrate] Unable to obtain resource from (...)/src/ddl/V1__create_tables_logging.sql:
[flyway:migrate] java.util.zip.ZipException: error in opening zip file
There is a suggestion at the end:
[flyway:migrate] Possible solution: run the Ant javac and copy tasks first so Flyway can find the migrations
But my project is not a Java application, I have no java sources to be compiled with javac. Does Flyway need to have the migration scripts packed in a jar? Can't it simply run some text files with SQL statements?
Unfortunately, you didn't provide a configuration you have, without it it's hard to tell, what exactly causes this issue.
But it seems odd to me, that you are not using location property of the task, but classpath. Try to specify the directory with you migration scripts as follows:
<flyway:migrate>
<locations>
<location path="path/to/migrations"/>
</locations>
...
</flyway:migrate>
I Have Source Controller And Team Project My Build Process Is
and when i build i Got Access Denied Error Like This:
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (3678): Unable to copy file "C:\Builds\2\AcuatAgile\AcuatNFSBuild\src\AcuatAgile\Release001\Library\Kendo.Mvc.dll" to "C:\Builds\2\AcuatAgile\AcuatNFSBuild\bin\Kendo.Mvc.dll". Access to the path 'C:\Builds\2\AcuatAgile\AcuatNFSBuild\bin\Kendo.Mvc.dll' is denied.
and every time i got Access Denied To Different File DLL
I Searched The Net And Most Of The Answers are Clean WorkSpace As You Can See I Put True To Clean WorkSpace And I Got The Same Error in Build.
is there any other parameters to solve this problem?
Check the properties of bin folder to see whether it is read-only.
Try to add the following MSBUILD arguments in the build definition: /m:1 to make MSBUILD to use only one process to build.
In jenkins iam facing an error when i trigger the gradle task.
When i execute the below shell
cd /home/cucumberBdd
./gradlew cucumber
I got this error ".gradle/1.8/taskArtifacts/cache.properties.lock (Permission denied)"
Below are the configurations:
Os-Ubuntu
CI-Jenkins
Buildtool:Gradle
Script: gradle script
I have installed and mentioned the gradle version in the manage jenkins.
One thing which i noticed is in jenkins the above command + whoam i gives jenkins name but the project folder writes are with system user.Can anyone tell me please how to avoid this error
You should not put .gradle in the version control at all, only the gradle directory (without the dot) needs to be versioned. Everything in .gradle is just caching stuff and can be safely deleted and recreated.
I'm trying to run a jython script from my Junit testcases. I have included the maven-jython-plugin.jar and jython.jar as well. As well as updated my pom.xml file accordingly. But when I run 'mvn install', I get following error:
Failed to execute goal net.sf.mavenjython:jython-compile-maven-plugin:1.0:jython (pydevLockUnlock) on project NTLauncherTest: extracting org/python/antlr/op/AugLoad.class from jython artifact jar failed: target/jython-plugins-tmp/org/python/antlr/op/AugLoad.class (Too many open files)
Does anyone know what I might be doing wrong and have a solution for this?
The issue is that maven can keep a lot of jar filehandles open. Check out this link for suggestions on how to troubleshoot that.
http://www.thinkplexx.com/learn/howto/maven2/debug/fixing-too-many-open-files-maven-problem-solution-for-teamcity-hudson-local-and-ssh-shell-environments
I've found that just re-running mvn install can lead to a successful build.