Trouble getting cpplint to work on Jenkins - c++

Does anyone know how to install cppcheck on Jenkins? I installed the plugin through Manage Jenkins > Manage Plugins but when I follow the instructions and included an "execute shell" build step, it fails.
cppcheck src
returns an log file like this:
cppcheck: not found
Build step 'Execute shell' marked build as failure
I tried looking at some online tutorials, but they didn't seem to help fix the problem. Should I use the CLI to install cppcheck on Jenkins, rather than the web UI? I don't think that will fix the issue, as it seems that cppcheck is not installed on the server.
Any help or guidance would be appreciated. Thanks!

Related

Failed to find the transpiler exported from #dataform/core. Ensure packages are installed and upgrade to a recent version

I am following the quicktart example from the google documentation (https://cloud.google.com/dataform/docs/quickstart) but when I try to execute the workflow, I can't click on the Start execution button. I have an error in the right panel which tells me :
Failed to find the transpiler exported from #dataform/core. Ensure packages are installed and upgrade to a recent version.
I tried to add a package.json file like following :
{
"dependencies": {
"#dataform/core": "1.6.2"
}
}
But it's not working. Anyone have an idea of the issue ?
EDIT : Here are the screenshots
Using the web console doesn't work for me as well. For now the workaround that works for me is to develop locally via dataform core.
Try to go to the packages.json file and then push the "Install packages" button. (See the screenshot)
Install packages
It worked for me this way.
Premisse: Your workspace is connected to some git external repository.
Do this steps:
Delete your workspace;
Edit outside of workspace, using your IDE or cloud shell. Confirm if project_id is correct in dataform.json, if not fix. Confirm if your source is referenced the corrects the the project-ids and dataset names. If not, fix. Commit and push;
Re-create the workspace again;
Run the workflow

how to write a makefile for gitlab -ci for python code?

I would like to write a makefile for my python project, and would like to run this project at amazon airflow called (mwaa). Can somebody help me with link or any video where I can learn to write a makefile step by step, and also if it has some packaging steps for deployment to mwaa.
Apologies I am new into gitlab CI-CD and have no clue about the deployment process.

'spinnaker-igor' was not found

For the first time, I am installing Spinnaker on AWS. I am following spinnaker documentations.
https://www.spinnaker.io/setup/install/providers/aws/
But when I am running "hal deploy apply" command it gives an error.
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '0.7.0-20171002182452' for 'spinnaker-igor' was not found
! ERROR Error encountered running script. See above output for more
details.
I checked the install.sh in /home/ubuntu/.hal/default directory and I see it has configured with Spinnaker repository.
Repo is "https://dl.bintray.com/spinnaker-releases/debians". I check that repo and I could find a correct version of spinnaker-igor.
Could you please give an idea to fix this issue?
Thanks
it's possible that bintray was being flaky. The exact package you were trying to download exists here and has been published since Oct 2. You can retry hal deploy apply and if fails again let us know.

'.' is not recognized

I was following this tutorial for aws-php sdk Tutorial.
I Installed composer manually by using Composer-Setup.exe.
So when I am trying to install composer by clicking composer.json>Composer>install
this error appeared.
And if you have some proper tutorial for using php-sdk, please comment it here.
The tutorial is 2years outdated.
What you are trying to do is execute composer.
The correct way to execute composer in a windows based system is:
php composer.phar install
or
c:\path\to\php php composer.phar install
The approach of using ./ works with linux based systems after you have made the file executable. You generally do not require that in windows.
Go through the following links for details:
https://www.codementor.io/php/tutorial/composer-install-php-dependency-manager
https://www.codementor.io/php/tutorial/composer-install-php-dependency-manager

Trouble installing Leiningen on Windows 7 behind firewall

I'm having trouble installing and configuring Leiningen on a Windows 7 work computer. I'm assuming that my company's firewall prevents the GitHub security certificate from authenticating.
I've tried to use the standalone jar but had trouble using it will several development tools Id like to use to work on Clojure projects.
What is the best way to get Leiningen set up given these circumstances? Is there a way to install curl or wget on Windows and call them from the batch file?
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
The error Im getting is:
Downloading Leiningen now...
'powershell' is not recognized as an internal or external command,
operable program or batch file.
Failed to download https://github.com/technomancy/leiningen/releases/download/2.
7.1/leiningen-2.7.1-standalone.zip
It is possible that the download failed due to "powershell",
"curl" or "wget"'s inability to retrieve GitHub's security certificate.
The suggestions below do not check certificates, so use this only if
you understand the security implications of not doing so.
The PowerShell failed to download the latest Leiningen version.
Try to use "curl" or "wget" to download Leiningen by setting up
the HTTP_CLIENT environment variable with one of the following
values:
a) set HTTP_CLIENT=wget --no-check-certificate -O
b) set HTTP_CLIENT=curl -f -L -k -o
NOTE: Make sure to not add double quotes when setting the value
of HTTP_CLIENT
Thanks!
I would suggest downloading and installing Git Bash (aka "Git for Windows), which includes not only Git but a nice linux-like environment (a leaner version of Cygwin). At that point you will avoid any Powershell-related problems, which your error msg seems to imply.
https://git-scm.com/download/win