I'm getting an error while attaching a file to the mail post Jenkins job.
ERROR: Error accessing files to attach: Expecting Ant GLOB pattern, but saw '/Test/reports/test_report.html' See http://ant.apache.org/manual/Types/fileset.html for syntax
Just a workaround, copy the file from its location to $WORKSPACE
cp $WORKSPACE/Test/reports/test_report.html $WORKSPACE/test_report.html
and just specify "test_report.html" in attachment field of your jenkins.
Related
I am trying to build a relase pipeline in dev.azure.com with a .sln file but it is keep failing and I am getting message "'.sln' is not recognized as an internal or external command". I have tried with full file name "ThursdayPorject.sln" and as well with "*" but everytime I am getting the same error. I am using "Command line script" to copy file from my "agent" folder on "C" drive to my "Tomcat" folder that is also on "C" driver. I am using the following command;
cd c:\agent_work\r\a_Thursdayprojet
copy ThursdayProject.sln C:\apache-tomcat-9.0.37\webapps\webapp
jenkins change-submit //... "ruby %quote%//HVS/Main/BuildScripts/notify_jenkins.rb%quote%"
So I have made the above p4 trigger in my triggers file, and I'm trying to run a build script file that I wrote in ruby but when I try to submit a file, I'm getting this error:
'jenkins' validation failed: ruby: No such file or directory -- //HVS/Main/BuildScripts/notify_jenkins.rb (LoadError)
Is there no way to make a p4 trigger run a file that's inside of a stream? The documentation says you can do this, but when I try to run it, it's saying it can't find the file.
Per the doc:
https://www.perforce.com/perforce/r14.2/manuals/p4sag/chapter.scripting.html#basics.scripts.depot
the format you want is:
jenkins change-submit //... "ruby %//HVS/Main/BuildScripts/notify_jenkins.rb%"
Surrounding it in %quote% characters means you're expecting the OS to be able to interpret that path as a local filesystem path.
I am trying to copy a war file from my localhost to a Tomcat web apps folder using command line script in Azure DevOps. My release is getting success but the war file is not getting copying to the destination folder. How to fix this issue?
Path folder mentioned below
The script you shared echo cd E:\apache-tomcat-9.0.41\webapps just print cd E:\apache-tomcat-9.0.41\webapps, check the pic below. We could refer to this doc for more details.
We could copy the file via below cmd. Add task Command line and enter below script
cd {file path}
copy {file name} {target path}
According to the screenshot you shared, you could try below script
cd C:\agent\_work\r1\a\_nitesh482.Devops\warfile\webapp\target
copy webapp.war E:\apache-tomcat-9.0.41\webapps
Result:
Update1
If the file does not exist, we will get the message: The system cannot find the file specified. and error message: [error]Cmd.exe exited with code '1'
Update2
Please ensure that you are using self-hosted agent instead of hosted agent. If you are using hosted agent, we will get the error message, check the pic below.
Self-hosted agent:
Hosted agent:
My knowledge is at a very basic level.
But I have special task for running Apache.
FreeBSD 8.1
At first, when I tried to perform command:
#apachectl start
was an error:
[warn](2) No such file or directory: Failed to enable the 'httpready' AcceptFilter
[warn](2) No such file or directory: Failed to enable the 'dataready' AcceptFilter
Then I added to the file /boot/loader.conf :
accf_http_load="YES"
accf_data_load="YES"
And when I perform
#/usr/local/etc/rc.d/apache22 start
I get this:
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22
Command:
#apachectl start
returns without any errors
In httpd-error.log I can see only this:
(21)Is a directory: httpd: could not open error log file /home/httpd-logs/hostname.example.error.log.
Unable to open logs
So the question is: How to start apache22 ?
Problem solved!
The reason was in bad extension of error log files that was written in httpd.conf for VirtualHost
That's why I saw message
(21)Is a directory: httpd: could not open error log file /home/httpd-logs/hostname.example.error.log.
Unable to open logs
in /var/log/httpd-error.log
So i just create new log files in /home/httpd-logs/ where they were all recorded
I have installed cron_email addon but get this error message in the template
Error
The following tag has a syntax error:
{exp:cron}
Please correct the syntax in your template.
What is wrong?
As specified on the Cron Send Email page, "Requirements: ExpressionEngine Cron plugin". So make sure it is installed as well: http://expressionengine.com/downloads/details/expressionengine_cron