setting hudson build trigger to check for svn changes - linux

i have set Poll SCM with different options
but none of them seems to work
i tried
* * * * *
5 * * * *
*/10 * * * *
it doesn't seem to try to build
and changes were committed to the svn
any idea what i'm doing wrong ?
do i have to set a post commit hook ?
shouldn't this work ?
thanks

Related

How to pass lighthouse location : cronexpression + AWS + Python + lighthouse

I have created AWS ec2 instance and a python script to automate lighthouse reports
I have successfully ran the lighthouse python code in AWS server manually by running below lines
ubuntu#ip:~/Python_lighthouse$ python3 SEO_PYTHON_LIGHTHOUSE_lighthouse.py
However, I am struggling to run the same code via cronjob.
*/10 * * * * /usr/bin/python3 /home/ubuntu/Python_lighthouse/SEO_PYTHON_LIGHTHOUSE_lighthouse.py /home/ubuntu/Python_lighthouse/lighthouse.log 2>&1
(above cronjob working fine but getting error: /bin/sh/: lighthouse not found)
Following version and locations:
which npm
/home/ubuntu/.nvm/versions/node/v17.5.0/bin/npm
which node
/home/ubuntu/.nvm/versions/node/v17.5.0/bin/node
which lighthouse
/home/ubuntu/.nvm/versions/node/v17.5.0/bin/lighthouse
I have tried passing lighthouse to my cronjob like this but didn't work for me
*/10 * * * * /home/ubuntu/.nvm/versions/node/v17.5.0/bin/lighthouse && /usr/bin/python3 /home/ubuntu/Python_lighthouse/SEO_PYTHON_LIGHTHOUSE_lighthouse.py /home/ubuntu/Python_lighthouse/lighthouse.log 2>&1
please correct me if I am doing something wrong. Thanks in advance!!!!

azure pipeline cron not run

Why isn't cron running every two minutes
I believe it should be:
schedules:
- cron: '0 0/2 * 1/1 * ? *'
displayName: success
branches:
include: master
always: true
When I use a cron generator to evaluate your cron string it errors which leads me to believe the issue is due to a bad cron string.
Here is the tool I used: cronmaker
Why isn't cron running every two minutes
The cron syntax */2 * * * * should be work.
I test it with github resource and your cron syntax:
And the result:
So, I can sure your cron syntax */2 * * * * is correct. We need to check other aspects, like:
Check the modification of schedules in the .yml file is synchronized to the github repo.
Create a new pipeline for the success.yml without any other settings.
If above not help you, you could try to create a pipeline for the Azure devops repo instead of the github rrpo with same cron syntax to check if you still have this issue, so that we could narrow the scope of this issue.

Redmine Cron Job Issue

I must set a Cron Job on Redmine to automatically manage IMAP fetching. I try to supply as many infos as I can about my environment:
Redmine version 3.2.0.stable
Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
Rails version 4.2.5
Environment production
Database adapter Mysql2
I have installed luismaia/redmine_email_fetcher as a plugin, and I have configured it for gmail IMAP. Up to this point I had no error messages and, by trying a test tool on Redmine, I get a success message.
I sum up the plugin configuration on Redmine as it follows:
Configuration type: IMAP
Is configuration active? true
Host : imap.gmail.com
Port: 993
SSL? yes
Email username: mailAddress
Password: mailAccountPwd
Folder Name: Inbox
Method for unknown users: accept
Now, I must run a Cron Job. At this link:
https://github.com/luismaia/redmine_email_fetcher
I have found the following:
*/5 * * * * www-data /usr/bin/rake -f /opt/redmine/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&
that I personalize as it follows:
*/5 * * * * www-data /usr/bin/rake -f /opt/redmine/Rakefile --silent redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production host=imap.gmail.com username=mailAddress password= mailAccountPwd port=993 --trace
Coming to the point: the line above doesn't work; and I've no idea why.
I can add that:
in /usr/bin I see rake2.1
opt directory (/var/opt) is empty.
I do hope I have explained my issue in a decent way.
Thank you in advance, really.
ps:
I tried also:
*/5 * * * * www-data /usr/bin/rake2.1 -f /var/www/redmine/Rakefile redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-
but nothing happens.
Test the which command:
which rake
for me it's in /usr/local/bin and not in /usr/bin
Next try to chdir in your redmine folder before launch the command in the crontab:
*/5 * * * * cd /var/www/redmine/ && sudo /usr/local/bin/rake redmine:plugins:email_fetcher:fetch_all_emails RAILS_ENV=production 2>&- 1>&-
Hope this can help you.
Cheers,
Luc

Why am I getting permissions issues on my Font Files using Openshift

I am working on a node.js project using OpenShift. Everything works great accept I get a 404 on my font awesome files. When I ssh I see...
ls app-deployments/current/repo/public/build/fortawesome/font-awesome/v4.0.3/fonts/
FontAwesome.css FontAwesome.otf fontawesome-webfont.eot fontawesome-webfont.svg fontawesome-webfont.ttf fontawesome-webfont.woff
But when I try to go to
http://<gear>/build/fortawesome/font-awesome/v4.0.3/fonts/fontawesome-webfont.woff
It says...
Cannot GET /build/fortawesome/font-awesome/v4.0.3/fonts/fontawesome-webfont.woff
http://<gear>/build/fortawesome/font-awesome/v4.0.3/fonts/fontawesome/FontAwesome.css
Works fine. It also works fine locally.
Now with permission goodness
lrwxrwxrwx. 1 * * * FontAwesome.otf
lrwxrwxrwx. 1 * * * fontawesome-webfont.eot
lrwxrwxrwx. 1 * * * fontawesome-webfont.svg
lrwxrwxrwx. 1 * * * fontawesome-webfont.ttf
lrwxrwxrwx. 1 * * * fontawesome-webfont.woff
As you can see the permissions look normal
From the permissions you posted, looks like they are symlink. Check whether your webserver has access (is following symlink) to the original file/location.
Look inside your ~/app-root/repo directory and make sure the files are there, and that they have the correct permissions to web accessible.
configure a static route using
app.use('/fontawesome', express.static(__dirname+'/fontawesome'));

Crontab for Codeigniter

How to set crontab in Codeigniter?
I just tried to set like this "*/1 * * * * php http://10.3.0.43:86/workallocation"
workallocation routs to a controller function (this function is working on direct browser) But it not working on the crontab. Please help me.

Resources