[
https://issues.jboss.org/browse/JBIDE-16888?page=com.atlassian.jira.plugi...
]
Andre Dietisheim commented on JBIDE-16888:
------------------------------------------
I got the cron-log show by doing the following (see this blog post for details:
https://www.openshift.com/blogs/getting-started-with-cron-jobs-on-openshift):
# ASSERT make sure you have a jbossas-7 application with an embedded cron cartridge
(further steps assume a jbossas-7 application, but it'll work with a different app as
long as you modify the ticktock.sh script accordingly)
# EXEC: Import the application from openshift to your workspace
# EXEC: create a file *ticktock.sh* in .openshift/cron/minutely (had to create the folder
*minutely*)
{code}
#!/bin/bash
date >> ${OPENSHIFT_JBOSSAS_LOG_DIR}/ticktock.log
{code}
# EXEC: Git add and commit the new file
# EXEC: Publish via Server adapter (or EGit)
# EXEC: pick *Tail files* from the context menu of your application and change the
log-pattern to the following:
!tail-log-pattern.png!
Result:
Your cron log show up:
!cron-log.png!
OpenShift explorer: Tail Files does not work on Cron cartridge
--------------------------------------------------------------
Key: JBIDE-16888
URL:
https://issues.jboss.org/browse/JBIDE-16888
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.2.0.Beta1
Reporter: Marián Labuda
Fix For: 4.2.x
Attachments: cron-log.png, tail-log-pattern.png
After adding embeddable cartridge Cron into the application it is possible to tail it
with current option. It is required to modify tail files pattern to include Cron job's
log store in /cron/log.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira