Create HTML dashboard of Jenkins jobs status
Perl script to fetch live jobs' status from Jenkins server and generate and display HTML dashboard from it. use strict; use warnings; use autodie; use REST::Client; use MIME::Base64; use JSON; my $api_proto = 'http'; #HTTP/HTTPS my $api_url = 'localhost'; #Server IP my $api_port = '8080'; #Port number my $api_user = 'admin'; #Jenkins account username my $api_pass = 'password'; #Jenkins account password my $client = REST::Client->new(); #Perl Rest Client Object $client->addHeader('Authorization', 'Basic '.encode_base64($api_user . ':' . $api_pass)); $client->GET($api_proto.'://'.$api_url.':'.$api_port.'/api/json?tree=jobs[name,color,url]'); my $html = ""; $html = $ht...