Is there any demo or useful command for run sonar scanner in YML file.Because my solar scanner command is not working with gitlab runner.
$ sonar-scanner
/bin/bash: line 92: sonar-scanner: command not found
ERROR: Job failed: exit code 1
Related
I am new to the Azure Devops. Your help is very appreciated!! thanks!
I am trying to add EF migration into my project build/release pipeline. I got error on task : build EF Migration by using Command line:
migrations script -i -p TestDBDDeploy -o $(Build.ArtifactStagingDirectory)/Migrations/migration.sql
error showed:
Starting: Build EF Migration
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.201.1
Author : Microsoft Corporation
Help : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh
You can invoke the tool using the following command: dotnet-ef
Tool 'dotnet-ef' (version '6.0.9') was successfully installed.
/home/vsts/work/_temp/ef141c6d-a3c5-4563-aac6-3418165fd854.sh: line 2: migrations: command not found
##[error]Bash exited with code '127'.
I have a project for which I want to be able to run some entry points on databricks. I used dbx for that, having the following deployment.yaml file:
build:
python: "poetry"
environments:
default:
workflows:
- name: "test"
existing_cluster_id: "my-culster-id"
spark_python_task:
python_file: "file://tests/test.py"
I'm able to run the test script with the execute command:
poetry run dbx execute --cluster-id=my-culster-id test
My problem with this option is that it launches the script interactively and I can't really retrieve the executed code on Databricks, except by looking at the cluster's logs.
So I tried using the deploy and launch commands, such that a proper job is created and run on Databricks.
poetry run dbx deploy test && poetry run dbx launch test
However the job run fails with the following error, which I don't understand:
Run result unavailable: job failed with error message
Library installation failed for library due to user error. Error messages:
'Manage' permissions are required to modify libraries on a cluster
In any case, what do you think is the best way to run a job that can be traced on Databricks from my local machine ?
I've recently added a documentation section on the differences of execute and launch, would that be something that answers your question?
I am running sonar scanner from Jenkins Pipeline on multiple Java projects. All the projects using the below sonar command:
mvn sonar:sonar \
-Dsonar.host.url=${sonar_host_url} \
-Dsonar.login="${SONAR_ACCESS_USERID}"
Dsonar.password="${SONAR_ACCESS_PASSWORD}"\
-Dsonar.projectKey="${scmreponame}" --batch-mode --quiet
but for one of the project I am getting the below error.
"Unable to locate report-task.txt in the workspace. Did the SonarScanner succedeed ? "
I am not able to understand why only for one project it is not able to locate the report.task file?
I am absolute beginner in Jenkins started learning from yesterday. I went through theory session yesterday that went quit well. However, on when I am trying hands on it I stuck with probably petty issue for Jenkins user.
I am running Jenkins on my mac machine and it's a completely brand new setup
here is the error
+ echo 'build start...'
build start...
[first-job] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/jenkins2233817479314329111.sh
+ npm install
/Users/Shared/Jenkins/tmp/jenkins2233817479314329111.sh: line 2: npm: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Project config.
I am trying to build a dockerfile for a Euler App to test ShinyProxy via "http://www.shinyproxy.io/deploying-apps/"
I am using the dockerfile from that link.
Upon using the command sudo docker build -t openanalytics/shinyproxy-template .
I get an error while the build is processing that:
Error: unexpected end of input
Execution halted
The command '/bin/sh -c R -e "install.packages(c('shiny', 'rmarkdown', repos='https://cloud.r-project.org/')" ' returned a non-zero code: 1.
I am curious why I am getting this error as this is the same exact command from the dockerfile.
What can I do to resolve this.
-Thanks
Look closely at the syntax of the R install library line and you will see its missing a closing parenthesis
I just manually fixed that syntax and it correctly builds that step
correct syntax
RUN R -e "install.packages(c('shiny', 'rmarkdown'), repos='https://cloud.r-project.org/')"
build it as
docker build --tag r_base .
NOTE - as docker build progresses it then fails later attempting to
COPY euler /root/euler
lstat euler: no such file or directory
To troubleshot this just comment out all Dockefile lines from offending onward and replace bottom line with
CMD ["/bin/bash"]
then it will build correctly and allow you to login to running container to further troubleshoot
docker run -ti r_base bash
I know nothing of R so will leave it to the reader to fix euler COPY ... evidently you must have euler sitting in your local directory prior to issuing the docker build command
...now after you issue above docker run command then from its internal to container prompt issue
cd /
find . | grep Rprofile.site
./usr/lib/R/etc/Rprofile.site
That looks good so leave commented out its COPY in Dockerfile