Flink - Cannot Submit New Job - upload

Cannot seem to be able to upload new jobs to Flink instance - or to get the web UI to do much.
Beginner, using Flink 1.4.0 on RedHat Linux 2.6, Java 1.8.0_45.
I was able to start the local cluster and see the web interface at http://hostname:8081. Following the Quickstart tutorial, I was able to start the job, send text into it and see the word counts in the log. However, the web interface does not seem to work: when the job is running, I cannot see the "Running Jobs" counter display 1 (it shows 0). When I try to upload a JAR using the web interface, nothing happens, and the JAR is not listed under "Uploaded JARs". The jobmanager and taskmanager logs do not show that I am uploading anything. I can upload the JAR via curl, and it says {"status": "success", "filename": "SomeUID_SocketWindowWordCount.jar"} - but I still cannot see that JAR as "Uploaded"
What am I missing?
Update: One day later, the "Submit new Job" page correctly shows that I have submitted half a dozen JARs. The "Completed Jobs" page still does not show anything.

Related

Can you improve the Jenkins build history search bar?

We utilize our Jenkins environment to run various tests and jobs daily. Recently we have noticed some instability in our environment - I want to document our passed/failed tests cases that are outputted in the console output. I want to search thru the console output to pull specific tests or script names and have the jobs associated with those tests show up.
Using the Jenkins build history search tool, I'm only able to search thru the job title (name), property & value page (page you see after go into that job). My question: can you search through the console output via the jenkins build history tool?
Thanks in advance

Sometimes not showing input parameter fields under "Promotion Status" on jenkins server

I have configured two jobs on jenkins server. One for creating package and second for deploying package to respective server. And promoted build from first job to second job. Facing issue on upgradtion of jenkins from 2.320 to 2.344. Sometimes promotion status not showing input field for deploy job. I'm attaching images for reference.
Sometime getting following UI on promotion status
Should show everytime:

CUPS jobs no longer showing on web UI

I send multiple jobs daily to a remote CUPS server. These jobs print successfully and were showing on the webui as in progress and then completed/all jobs.
Recently, it stopped showing any new jobs status or completion - jobs print, but they are not showing. They do in exist in /var/spool/cups - just not the webui.
Test pages printed via the webui do show up in jobs on the webui.
I haven't been able to find any configuration item that handles this, any ideas?
There were 2 instances of the cups daemon running. Killed one and all jobs started showing back up...

Jenkins: Tracing the history of unsaved new test definition (copied from another test definition)?

Recently, in our enterprise production setup, it seems someone has tried to setup a new job / test definition by using another (copying) from identical job. However, (s)he seems to have NOT saved (and probably, am guessing here, closed the browser with the session being lost).
But the new job got saved though it was not set to stable or active; we knew about this because changes uploaded to gerrit, started failing in this newly setup partial job (because, these changes were in certain repos that met certain TDD settings).
Question: Jenkins system does not have trace of who setup the system in 'configure versions' option. Is there anyway to know the details of who setup the job / when was that done ?
No, Jenkins does not store that information by default.
If your Jenkins instance happen to be running behind an Apache or Nginx web server, there might be access logs that can help you. To find out when the job was created you could look at when its config.xml file was created/modified.
However, there are a few plugins that can add this functionality so that you won't have this problem again:
JobConfigHistory Plugin – Tracks changes in your job configurations and gives the ability to restore old versions.
Audit Trail Plugin – Keeps a log of who performed particular Jenkins operations, such as configuring jobs.

How can I report the test results from a TestNG/Maven/Jenkins tests, via Email and attach screenshot?

I have some SeleniumWebdriver/TestNG/Maven/Java continuous integration tests, that I run in Jenkins.
Every time a test fails, a screenshot of the error is created.
How can I configure Jenkins to send an email to certain people and attach the screenshot upon failure?
The screenshot is located in this directory:
/mnt/www/jenkins/jobs/Integration tests/workspace/target/surefire-reports/
and its name is generated as a combination of a timestamp and the error that has occured, like this:
2013-7-6-12-1-30-UnabletolocateelementmethodlinktextselectorApprove.jpg
Screenshots arent automatically deleted, so there could be quite a few screenshots in that dir.
So, how can I make Jenkins send me the report with the screenshot attached?
OR Can I make TestNG do that? How?
Actually, no need to work with Jenkins, it can be done within the code of the test itself.
Generate the screenshot as described here:
Selenium Webdriver/TestNG/Maven/Xvfb - take screenshot on fail?
then install the Java Mail API and a SMTP mailer service on your computer and make your code send email with the screenshot as an attachment upon failure.

Resources