hacklanta / hubot-yardmaster Goto Github PK
View Code? Open in Web Editor NEWHubot plugin to control jobs on Jenkins CI
Home Page: http://hacklanta.com/
License: MIT License
Hubot plugin to control jobs on Jenkins CI
Home Page: http://hacklanta.com/
License: MIT License
Need to be able to list all jobs that are on jenkins currently
Hello, I'm using the cloudbees folders plugin (https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin) and it seems that these plugins are incompatible.
I can't access jobs in folders in any way.
Any chance for a fix?
I have a hubot running fine in Slack. I now want to add the Jenkins functionality provided by this module.
I run it like this:
HUBOT_SLACK_TOKEN=*** HUBOT_JENKINS_URL=https://**** HUBOT_JENKINS_USER=**@***.*** HUBOT_JENKINS_USER_API_KEY=**** ./bin/hubot --adapter slack
I check that the bot still works. Then I call any of the commands provided by this module but nothing works...
It would be helpful to notify when a job and its dependancies are done and report back to the user that requested the watch
It would be nice if yardmaster allow for branch locking when certain jobs are deployed. Essentially, this is intended to address the problem of two people on the same team not realizing that the other needs to use the job in question.
Locking would be turned off by default. I would envision turning it on looking something like
Hubot, enable locking for
At this point, the Hubot knows what the default branch for the job in question is. You could likewise disable locking for a particular job.
Hubot, disable locking for
When locking is active for a job, yardmaster will require some extra information in order to switch a build over to the non-default branch. To switch a job to a feature branch you'd need to provide something like the following:
Hubot, switch to for
At this point, the reason for the branch switch has been logged. When the developer who is doing the testing is finished, they can say
Hubot, switch to
And the build is now considered unlocked and free for anyone to switch. However, if another developer tries to come in and deploy a second feature branch on top of the first one, let's say Mike tried to deploy a feature branch while Antonio was testing something, something like the following exchange would occur:
Mike: Hubot, switch alan-shepherd to awesome-sauce
Hubot: Sorry, Mike. Antonio is using alan-shepherd to test super-cool-branch-name for "super secret testing reason" since 7/23/2014 at 10:00 AM EST.
At this point Mike has two options.
Hubot, force switch to for
A force switch overrides the lock functionality, but ideally shouldn't be used unless the developer who was using the job is unreachable for some reason.
Right now running Hubot, switch my-job to my-branch.
will try to switch to my-branch.
rather than my-branch
.
When we ask hubot to switch a job to a branch, it would be handy to double-check whether that branch is valid before firing off a build that will fail.
Some thoughts:
def need some tests
Running "hubot watch job " gives me the following error:
Aug 08 15:44:08 server hubot[3080]: [Mon Aug 08 2016 15:44:08 GMT+0200 (CEST)] INFO [Incoming] pontius: hubot watch job https://<server>/job/<jobname>
Aug 08 15:44:08 server hubot[3080]: [Mon Aug 08 2016 15:44:08 GMT+0200 (CEST)] INFO Message sent to hubot brain.
Aug 08 15:44:09 server hubot[3080]: [Mon Aug 08 2016 15:44:09 GMT+0200 (CEST)] ERROR RangeError: Maximum call stack size exceeded
Aug 08 15:44:09 server hubot[3080]: at RegExp.test (native)
Aug 08 15:44:09 server hubot[3080]: at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:503:3, <js>:589:26)
Aug 08 15:44:09 server hubot[3080]: at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
Aug 08 15:44:09 server hubot[3080]: at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
Aug 08 15:44:09 server hubot[3080]: at trimUrl (/opt/hubot/node_modules/hubot-yardmaster/src/yardmaster.coffee:507:5, <js>:593:14)
[...]
get it added to main script list for others to enjoy
I think it's probably time to modularize this thing a bit.
There are a few dividing lines I can see immediately... things like
WDYT? Does this seem like a reasonable division? I could whip up a sample PR at some point soon if so.
Hubot is reporting an error when running some commands but not all.
hubot show last build for
[Thu Sep 03 2015 17:19:10 GMT-0700 (PDT)] ERROR TypeError: Cannot read property 'replace' of undefined
at /home/jenkins-slave/jarvis/node_modules/hubot-yardmaster/src/yardmaster.coffee:214:17, :227:38
at /home/jenkins-slave/jarvis/node_modules/hubot-yardmaster/src/yardmaster.coffee:67:9, :37:16
at IncomingMessage. (/home/jenkins-slave/jarvis/node_modules/hubot/node_modules/scoped-http-client/src/index.js:95:22)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
i want to see the output of a job - either last or by id
Need to be able to enable/disable build
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.