kj187 / dashing-jenkins_job Goto Github PK
View Code? Open in Web Editor NEWJenkins widget for Dashing-JS
Jenkins widget for Dashing-JS
deepak:~/Downloads$ npm install -g dashing-js
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Critical security bugs fixed in 2.5.5
npm WARN deprecated [email protected]: connect 2.x series is deprecated
npm WARN deprecated [email protected]: Please update to at least constantinople 3.1.1
npm WARN deprecated [email protected]: Deprecated, use jstransformer
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/usr/local/bin/dashing-js -> /usr/local/lib/node_modules/dashing-js/bin/dashing-js
> [email protected] install /usr/local/lib/node_modules/dashing-js/node_modules/node-sass
> node build.js
(node:15625) [DEP0006] DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
CXX(target) Release/obj.target/binding/binding.o
In file included from ../binding.cpp:7:
../sass_context_wrapper.h:10:3: error: unknown type name 'uv_work_t'
uv_work_t request;
^
../sass_context_wrapper.h:20:3: error: unknown type name 'uv_work_t'
uv_work_t request;
^
../binding.cpp:13:20: error: unknown type name 'uv_work_t'
void WorkOnContext(uv_work_t* req) {
^
../binding.cpp:19:22: error: unknown type name 'uv_work_t'
void MakeOldCallback(uv_work_t* req) {
^
../binding.cpp:20:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:883:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../binding.cpp:21:14: error: no matching constructor for initialization of 'v8::TryCatch'
TryCatch try_catch;
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:8438:12: note: candidate constructor not viable: requires single argument 'isolate', but no arguments were
provided
explicit TryCatch(Isolate* isolate);
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:8558:3: note: candidate constructor not viable: requires 1 argument, but 0 were provided
TryCatch(const TryCatch&) = delete;
^
../binding.cpp:29:31: error: no matching function for call to 'Null'
Local<Value>::New(Null()),
^~~~
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:322:27: note: candidate function not viable: requires single argument 'isolate', but no arguments were
provided
friend Local<Primitive> Null(Isolate* isolate);
^
../binding.cpp:30:39: error: no member named 'New' in 'v8::String'
Local<Value>::New(String::New(ctx->output_string))
~~~~~~~~^
../binding.cpp:30:39: warning: 'New' is deprecated [-Wdeprecated-declarations]
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:5062:10: note: 'New' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../binding.cpp:30:39: warning: 'New' is deprecated [-Wdeprecated-declarations]
Local<Value>::New(String::New(ctx->output_string))
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:4043:12: note: 'New' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../binding.cpp:33:24: error: member reference type 'v8::Persistent<v8::Function>' is not a pointer; did you mean to use '.'?
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~~~~~~~^~
.
../binding.cpp:33:26: error: no member named 'Call' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~~~~~~~ ^
../binding.cpp:33:40: error: no member named 'GetCurrent' in 'v8::Context'
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~^
../binding.cpp:38:39: error: no member named 'New' in 'v8::String'
Local<Value>::New(String::New(ctx->error_message))
~~~~~~~~^
../binding.cpp:38:39: warning: 'New' is deprecated [-Wdeprecated-declarations]
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:5062:10: note: 'New' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../binding.cpp:38:39: warning: 'New' is deprecated [-Wdeprecated-declarations]
Local<Value>::New(String::New(ctx->error_message))
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:4043:12: note: 'New' has been explicitly marked deprecated here
static V8_DEPRECATED("Use maybe version",
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8config.h:327:29: note: expanded from macro 'V8_DEPRECATED'
declarator __attribute__((deprecated))
^
../binding.cpp:41:24: error: member reference type 'v8::Persistent<v8::Function>' is not a pointer; did you mean to use '.'?
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~~~~~~~^~
.
../binding.cpp:41:26: error: no member named 'Call' in 'v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8::Function> >'
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~~~~~~~ ^
../binding.cpp:41:40: error: no member named 'GetCurrent' in 'v8::Context'
ctx_w->callback->Call(Context::GetCurrent()->Global(), argc, argv);
~~~~~~~~~^
../binding.cpp:50:31: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
Handle<Value> OldRender(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:144:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
../binding.cpp:51:17: error: calling a protected constructor of class 'v8::HandleScope'
HandleScope scope;
^
/Users/deepak/.node-gyp/10.8.0/include/node/v8.h:883:13: note: declared protected here
V8_INLINE HandleScope() {}
^
../binding.cpp:55:23: error: expected ';' after expression
String::AsciiValue astr(args[0]);
^
;
../binding.cpp:55:13: error: no member named 'AsciiValue' in 'v8::String'
String::AsciiValue astr(args[0]);
~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
make: *** [Release/obj.target/binding/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/dashing-js/node_modules/node-sass
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/deepak/.npm/_logs/2018-08-07T06_57_14_847Z-debug.log
deepak:~/Downloads$
Using: npm install -g dashing-js
I get this: http://i.imgur.com/m7emsrm.png
Hi
In our jenkins builds, we are having multiple arguments like comments, etc. Currently, those are not coming on builds.
Hi,
Why is it trying to access my Jenkins on port 80. The Jenkins works on default port 8080.
Can you please tell me how to change the port?
//Vivek
Installing zip "https://github.com/kj187/dashing-jenkins_job/archive/master.zip"
create widgets/dashing-jenkins_job-master/
create widgets/dashing-jenkins_job-master/README.md
create widgets/dashing-jenkins_job-master/config.jenkins_job.sample.js
create widgets/dashing-jenkins_job-master/jenkins_job.coffee
create widgets/dashing-jenkins_job-master/jenkins_job.html
create jobs/jenkins_job.job.js
events.js:160
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'jobs/jenkins_job.job.js'
at Error (native)
I want to create dashboard for couple of features of Jenkins.
Sample dashboard in dashing js working but when i am trying to for jenkins_job. showing error on command line. am not able to figure out what is issue.
can somebody help me out to find resolution to this issue.
2017-05-17T15:36:07.958Z - error: Error: Not Found
at end (C:\BMCData\dashboard\jenkins_dashboard\node_modules\mincer\lib\mincer\server.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\mincer\lib\mincer\server.js:1:28
at Server.compile (C:\BMCData\dashboard\jenkins_dashboard\node_modules\mincer\lib\mincer\server.js:1:28)
at Server.handle (C:\BMCData\dashboard\jenkins_dashboard\node_modules\mincer\lib\mincer\server.js:1:28)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\mincer\lib\mincer\server.js:1:36
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at Dashing.allowCrossDomain (C:\BMCData\dashboard\jenkins_dashboard\node_modules\new-dashing-js\lib\dashing.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at methodOverride (C:\BMCData\dashboard\jenkins_dashboard\node_modules\method-override\index.js:1:36)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at urlencodedParser (C:\BMCData\dashboard\jenkins_dashboard\node_modules\body-parser\lib\types\urlencoded.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at jsonParser (C:\BMCData\dashboard\jenkins_dashboard\node_modules\body-parser\lib\types\json.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at compression (C:\BMCData\dashboard\jenkins_dashboard\node_modules\compression\index.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:36)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at logger (C:\BMCData\dashboard\jenkins_dashboard\node_modules\morgan\index.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at expressInit (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\middleware\init.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at query (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\middleware\query.js:1:28)
at Layer.handle [as handle_request] (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\layer.js:1:28)
at trim_prefix (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28
at Function.process_params (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:36)
at next (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:1:28)
at Function.handle (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\router\index.js:174:3)
at EventEmitter.handle (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\application.js:1:28)
at Server.app (C:\BMCData\dashboard\jenkins_dashboard\node_modules\express\lib\express.js:1:28)
at emitTwo (events.js:1:36)
at Server.emit (events.js:1:28)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:1:36)
at HTTPParser.parserOnHeadersComplete (_http_common.js:1:36)
express deprecated res.send(status, body): Use res.status(status).send(body) instead node_modules\new-dashing-js\lib\dashing.js:201:9
GET /assets/favicon.ico 500 613.566 ms - 14
My install is failing for some reason - below is the error message I'm getting:
Is there a way to manually install the package? If I start a new Dashing project, which files do I copy to which folders?
$ ./node_modules/dashing-js/bin/dashing-js install https://github.com/kj187/dashing-jenkins_job/archive/master.zip
Installing zip "https://github.com/kj187/dashing-jenkins_job/archive/master.zip"
create widgets/dashing-jenkins_job-master/README.md
create widgets/dashing-jenkins_job-master/config.jenkins_job.sample.js
create widgets/dashing-jenkins_job-master/jenkins_job.coffee
create widgets/dashing-jenkins_job-master/jenkins_job.html
create jobs/jenkins_job.job.js
events.js:167
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open 'jobs/jenkins_job.job.js'
Emitted 'error' event at:
at WriteStream.onerror (/home/-------/dashboards/node_modules/unzip/node_modules/readable-stream/lib/_stream_readable.js:558:12)
at WriteStream.emit (events.js:182:13)
at fs.open (fs.js:2219:12)
at FSReqWrap.oncomplete (fs.js:136:20)
I'm not very familiar with npm/dashing/etc so I apologize if I did something wrong here.
I tried following the instructions to install and it gave me an error when running
$ dashing-js install https://github.com/kj187/dashing-jenkins_job/archive/master.zip
Installing zip "https://github.com/kj187/dashing-jenkins_job/archive/master.zip"
create widgets/dashing-jenkins_job-master/
create widgets/dashing-jenkins_job-master/README.md
create widgets/dashing-jenkins_job-master/config.jenkins_job.sample.js
create widgets/dashing-jenkins_job-master/jenkins_job.coffee
create widgets/dashing-jenkins_job-master/jenkins_job.html
create jobs/jenkins_job.job.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: ENOENT, open 'jobs/jenkins_job.job.js'
But when I created the jobs
directory, it went fine
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.