I use SonarQube Version 6.4 (build 25310) along with TFS2015 and the SonarQube extension for the TFS-Buildstep. All my project builds but one where i have folowing error in the log
"ERROR: Invalid value of sonar.sources for >ProjectName:branch:ProjectKey:branch:AE8A3BE5-1E88-4D6F-BC7F-F9A927299B83"
2017-07-25T09:26:00.8647089Z ##[error]ERROR: Error during SonarQube Scanner >execution
2017-07-25T09:26:00.8647089Z ##[error]ERROR: The folder 'Path\path\path' does not exist for....
I tried to exclude thes folder but it didn't helped.
And i don't know why i have this error and why i get this strange number after the project key?
Related
I'm trying to build a solution using jenkins with MSBuild and I keep getting this error: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
I have installed the latest version of sonarqube 7.0 on my mac machine and trying to configure my iOS Swift project.
I am getting the following error while running the command sonar-scanner
ERROR: Error during SonarQube Scanner execution
ERROR: org/sonar/api/measures/PersistenceMode
ERROR: Caused by: org.sonar.api.measures.PersistenceMode
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR - Command 'sonar-scanner ' failed with error code: 1
Note: Using the latest plugin backelite-sonar-swift-plugin-0.3.5.jar
The above issues has a quick fix in the below link,
https://github.com/Hugal31/sonar-swift/tree/fix/persistence-mode
Download the plugin and replace with the old version. It might help you.
What went wrong:
A problem occurred configuring project ':app'.
You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 23.0.3].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 22.387 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Finished: FAILURE
I get this error when I build on jenkins on my windows machine. So how could I accept the license and fix the above issue
Have you tried using the new sdkmanager to update your SDK? You just have to run it once on the machine in question to accept the license for a given version.
https://developer.android.com/studio/command-line/sdkmanager.html#usage
You can also use the GUI which comes alongside this tool. See the following question for more information:
https://superuser.com/questions/1161536/android-bat-brings-up-sdk-manager-gui-why-is-sdkmanager-bat-needed
I'm running Jenkins locally on my mac and I can't seem to get Jenkins to download the Android SDK automatically. I'm not defining a path, and according to the documentation, Jenkins will auto download it. What am I missing here?
"The plugin will automatically download and install the Android SDK, if it's not already installed when a build starts."
Jenkin Log
[Gradle] - Launching build.
[workspace] $ /var/root/.jenkins/jobs/TestingBuild/workspace/gradlew clean
FAILURE: Build failed with an exception.
* Where:
Build file '/private/var/root/.jenkins/jobs/TestingBuild/workspace/app/build.gradle' line: 17
* What went wrong:
A problem occurred evaluating project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 19.418 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE
So two days later... problem solved. I had to place an instance of the android sdk at this location. /Users/Shared/Jenkins/Home/tools/android-sdk. I also set an Environment variable ANDROID_HOME with the same path. Here's a screenshot.
I'm trying to setup Jenkins to compile an iOS Xcode project. The xcode project uses CocoaPods. However, I get this error in Jenkins when I attempt a build. All files in the Pods/ directory have full write/read/execute permissions. Any thoughts?
/bin/sh -c /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MyApp-dripdwqnufuksvhcfgcgxajaahyq/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-EAAE77068BA044C9B06632CE.sh
/Users/samy/Work/mobile/iphone/MyApp/Pods/Pods-resources.sh: line 5: /Users/samy/Work/mobile/iphone/MyApp/Pods/resources-to-copy-MyApp.txt: Permission denied
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Copy\ Pods\ Resources /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MyApp-dripdwqnufuksvhcfgcgxajaahyq/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-EAAE77068BA044C9B06632CE.sh
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE
"Full read/write/execute permissions" for whom? Which user? Jenkins usually runs under it's own user, called jenkins
The only workaround I came across was to move the entire Xcode project to jenkins user directory.
You might want to add a custom build setting PODS_ROOT
PODS_ROOT=$(PROJECT_DIR)/Pods