Display artifact in Jenkins Build description - plugins

I would like to automatically display a artifact as part of the build description.
Now I can do this by manually editing the build description but that would mean I have to do this for every build.
Is there a way to automate this?
This is what I would like to add this description to every build:
<img src="/job/report/$BUILD_NUMBER/artifact/graph1.png"/>
<img src="/job/report/$BUILD_NUMBER/artifact/graph2.png"/>
I have also added this as the job description and I can nicely show the output of the last build, but now I would like to quickly browse through the result from job to job.

You can use the Description Setter Plugin to set the build description at the end of each run. It supports variable substitution, e.g. you can use $BUILD_NUMBER. To enable HTML tags, you need to change the Markup Formatter in the Global Security options to "Raw HTML", but be aware of the security issues raised by using unescaped HTML.

Related

TYPO3 Static template not being included in Template hierarchy?

I have a site package that I need to include in Static Templates.
It has been added as the last template under Includes > Selected Items, but if I then go to the Template Analyzer it is not listed.
In another offline installation of TYPO3 I use to test on, the static template is added and working perfectly. What could be going wrong here?
For Includes > Selected Items you are registering a label-value-pair for the select field only. To be shown, it is only necessary that your extension is installed/active. The content of this registration is not checked.
In contrast to this, the specified file is read during parsing. I.e. errors in the pathname take effect here. So here it is crucial that the registered path matches the actual path of the file - if necessary, including the consideration of the upper and lower case (or camelCase).

How to get no frame on a table in AsciiDoc on GitHub

I want to make a table in AsciiDoc on GitHub with no frame. My reading of the documentation is that this should work:
[frame="none",options="header"]
|===
| Foo | Bar
| Widget | Gadget
|===
Yet it renders with a frame:
That frame="none" setting should do it. But it doesn't. I try it without quotes and its the same. The options="header" works fine, so I know the interpreter is seeing the line in brackets and taking some action.
Is it possible that GitHub runs some version of AsciiDoc that is not full featured? If so, is there a site with the details of what does and doesn't work?
Note--this is on our internal corporate instance of GitHub Enterprise, so we may be some versions out of date, or not have some plug-in installed. Is there a special plug-in that does the trick? I don't admin the platform, so is there a way I can check versions and plug-ins in any given GitHub platform as an ordinary developer?
We use AsciiDoc pervasively as our GitHub Wiki language, so changing to another one that does tables better is not an option.
All help appreciated!
GitHub runs an official Asciidoctor to provide a nice rendering. However, they also run the generated HTML and CSS through a filtering process to prevent security issues. During that process, they strip off custom class names from a variety (if not all) elements (I don't know the exact details).
Running asciidoctor on your sample document shows a table that looks like this:
<table class="tableblock frame-none grid-all stretch">
Whereas their process results in a table that looks like:
<table>
From GitHub's perspective, those kinds of changes mean that tables look the same everywhere on the site.
If you need frameless tables, you'll probably find using GitHub Pages a lot easier because you can use custom (or asciidoctor-provided) CSS in that context.

Orchard Workflow 1.7

I have downloaded the latest upcoming 1.7 version and I tried to understand how workflow works and how it can be extended.
First question is: is there some documentation about it?
I found something but not so detailed on how to extend workflow with my features.
For now this is what I cannot figure out myself inspecting the existing code:
How can I assign a custom icon to my custom action (like the envelope in send mail) both on canvas and in toolbox?
I have tried providing a css class with same name and a resource (in a different module), the action works but it shows default icon.
Thanks
No
Look at the stylesheets in the module. You'll see that the image is being defined inline, from the stylesheet, as a background image, for each activity. You may of course use an external image, or reproduce that pattern of including it inline.

How to add script tag in django cms text editor

I am building a website on django-cms. In some pages I want to add javascript to django-cms pages(not templates).
How can I escape the script tag in django-cms wysiwyg editor, whenever I tried to add alert in page, it get executed as soon as write the word "alert".
Any pointers or suggestions would be great
Thanks
script tags (and any other insecure tag) is not allowed in the django-cms default text editor. See http://wiki.whatwg.org/wiki/Sanitization_rules for a list of sanitization rules that get applied.
You cannot override or disable these rules.
If you need users to add script tags, write a custom CMS Plugin (see http://docs.django-cms.org/en/2.4.0/extending_cms/custom_plugins.html) that allows your users to do this. I recommend you don't actually let them write the script tag, but rather provide them with a form that will sanitize/validate the input and generate the script tag.

is it possible to get an xPages build number?

I do all development in a single application. when a new version is ready I create a template and give it a version number. this way I can store a history of all previous versions.
the development templates are used to push the new design to many applications via replace design.
Creating manual version number or template names is fine but I am looking for a more automatic way of finding out which build the different applications are inherited from
When I visit the different applications I would like to be able to see which build number each application are inherited from. is this possible?
A simple build time stamp could do, but is there a built in build number that can be used and that can be displayed on the xpage.
e.g Build 2012092712345
Update:
Thank you for all your answers, many good suggestions but it looks like all require manual work.
The best solution would be if there is a way to read (from ssjs) a timestamp from any file within the nsf that is always updated during a build. is this possible?
In classic notes, there was a method to add a shared field with a special name to the application. Cannot remember the details, but have it somewhere on the disk.
Then you can see the build number in the design tab of the application properties. And you can of course display the value in your applikation as well.
But you have to fill the item manually on each build. Or use teamstudio Buildmanager. This tool adds the value automatically.
And I also guess that you can write some code that changes the value whenever you create a new build.
Another option would be to use a versioning system like CVS/SVN. This is possible since 8.5.3.
Source control
I think I know what you are meaning. Your a pushing out design and want to check thru code what version each database has. I usually do this with a Build form. In this form I have computed fields with all the data I want to retrieve. Then I open the database with an agent create a document
and set the form field to "BuildForm" and do a computewithform.
Now I can see all information about this database.
I once wrote a rudimentary build system for "classic" Notes, and had the last part of the build pipeline create a form named _BUILDID_, and put the build id in the $Comment field.
The main reason to create a form instead of a shared field was that I could dynamically fetch the form using NotesDatabase.Forms, and open up the desired field.
I sure hope there are simpler solutions nowadays... :-)