Jenkins & email-ext questions - email

I've been looking into using the email-ext plugin for our Jenkins/DotCi setup, however i can't seem to find any resource on which where we should be storing our templates for the email?
I can modify the templates listed "/src/main/resources/hudson/plugins/emailext/templates" to contain the information i want to have sent.
Does the email template live in the root similar to the .ci.yml file?

You can find "Extended E-mail Notification" under the "Manage Jenkins" -> "Configure System"
There you can find all the configuration settings for this plugin - including "Default Content"

The templates go into JENKINS_HOME\email-templates
To check that it is configured right, go to a project that you have run at least once and click on 'Email Template Testing' in the sidebar. Type in the full name of your template file.
If the file can't be found you will get an error in red beneath the input box. Otherwise you are good to go.

Related

How to know the folder name or path of "Do you trust the authors of the files in this folder?"

I want to display either folder-path or folder-name that is causing this security dialog in VSCode.
This dialog shows that "the parent folder name is Proj. However the name of this folder is hidden."
Is it good enough info to deal with push Yes, I trust the authors button?
This means I'm missing something to do? otherwise this behavior is by design?
OK this issue has been fixed around VSCode 1.58.2.
Show folder in Workspace Trust dialog · Issue #125984 · microsoft/vscode
adding basic folder info to dialog · microsoft/vscode#3724cf8
Now I can confirm the target folder path in dialog:

Visual Studio 2017 ClickOnce - Unable to view published application

I have an application that I'm trying to publish to my website. The error I'm getting is that when done publishing, it says:
So it looks like it succeeded, but didn't.
My website is located at www.mywebsite.com.
In my build properties, under the publish tab, I click options->deployment, then set deployment webpage title to 'rdl', then I check automatically generate deployment webpage after every publish
I then go through the Publish Wizard:
Specify the location to publish this application: ftp://www.mywebsite.com/
Click next.
Check From a website: Specify the url: http://www.mywebsite.com/
Check Yes, this application will be available online or offline
The final page then states:
The application will be published to:
ftp://www.mywebsite.com/
Users will launch this application from:
http://www.mywebsite.com/
Click Finish
I am then left with the error described in the image above.
When I go to cPanel (my web host), I am able to see the Application Files folder which includes my application folder inside it.My .deploy and .application file are also located there along with any assets I had.
This Application Files folder is on the same level as the public_html folder if that matters.
Any help would be appreciated, I'm not exactly sure where I'm going wrong!

Add a template from a non-storefront cartridge to Demandware Content Slot Configuration?

I'm using the Demandware Business Manager to create a new content slot configuration for a pre-existing content slot following the Demandware DiD Instructor Guide (pg. 152). My issue is that I'm being told to add a content slot configuration to "merchant-product" using a template that is in the "training" cartridge. However, when I try to add a template, the pop up (from clicking [...]) only allows me to view templates that are within the storefront cartridge.
This template is in the "training" cartridge because the instructions indicated to put it in the "training" cartridge instead of the "storefront" cartridge. I have included the "training" cartridge in my site settings as per the instructions. Why does this cartridge not appear as an available cartridge to use templates from?
How do I add this (non-storefront) cartridge in so that I may use a template from it?
Please follow the instruction below.
Go to your Sandbox - Business Manager.
On the left nav, navigate to Sites -> Manage Sites -> [Select your
Site/Store Name e.g. SiteGenesis]
Click on it, then you will see some tabs some as General, Settings,
Cache, and Security.
Go click Settings tab.
On the Cartridges text field, you will something like this:
sitegenesis_storefront_richUI:sitegenesis_storefront_core
Add your cartridge name having this separation of colon symbol.
Saves Changes and apply.
Make sure to clean your cache after doing this.
Try again to access your cartridge outside of storefront app and let me know.
To solve please copy slots folder under templates/default/ folder.

How to distribute Eclipse Update Site

I can't find a free repository allowing to distribute Eclipse Update Site.
The main requirement is that it should provide access to raw content so that Eclipse can use the URL to retrieve all the binaries of my projects.
GitHub provided access to raw url but it seems it stopped.
Do you know if bitbucket does it? any different solution?
Actually, you can host an eclipse update site easily on github using raw url. I know because I have done it recently and it works.
It is true that you get a 404 when you try to access the repos 'raw' directory. However, that is actually not a problem because when you use the Eclipse (or Marketplace) installer to install something from an update site the installer does not access the folder directly. Rather it will only access files like 'catalog.xml'. This means that if you point the Eclipse installer at your raw update-site folder then it will be able to read the contents of the site without any problem.
Here is an example:
https://github.com/kdvolder/thirdparty-p2-repo/tree/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository
The corresponding raw url is this:
https://raw.githubusercontent.com/kdvolder/thirdparty-p2-repo/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository
Yes, that will give a 404 when you click it. But that is okay, just open "Help >> Install New Software" and paste the link into the "Work with" field of the dialog and it works fine:
It works because raw urls like this one are all the installer needs:
https://raw.githubusercontent.com/kdvolder/thirdparty-p2-repo/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository/category.xml
Github also allows this. You need to create github page and upload your p2 repository there. On the website github pages is explained how to achieve that. Just scroll and the steps will appear on the page (fancy javascript). For your project there is a second repository, where you have to put your repository.
I prefer to use sourceforge for the update site of my Eclipse projects. I recently published a blog post detailing all the steps to achieve that http://www.lorenzobettini.it/2015/01/publish-an-eclipse-p2-repository-on-sourceforge-with-rsync/

Change default installation location and Create a desktop shortcut link in Install4j

I am using Install4j to create installer for my app.
I want to change the default installation folder location to "My Documents" folder. I am trying to do it from "Installation location"" screen. But not getting the result.Can anyone please tell me that which things i need to change/edit ?
I want to create a desktop shortcut link icon. I am trying to do it using "Add a Desktop link" action under "Desktop Integration"" category. But not getting the expected result. I am sure than I am missing something but don't know which part. So can anyone please suggest me the whole operation to add a desktop link ?
I am not an expert on Install4j but have the basic knowledge. I have searched on google and checked the previous threads on stackoverflow but didn't get my expected result.
Thanks in advance for your help.
I want to change the default installation folder location to "My Documents" folder.
In the "startup" node of your installer, add a "Run script" action with the script:
File docsDir = WinFileSystem.getSpecialFolder(SpecialFolder.DOCS, false);
File installationDir = new File(docsDir, "myApp");
context.setInstallationDirectory(installationDir);
return true;
I want to create a desktop shortcut link icon. I am trying to do it using "Add a Desktop link" action
Probably the file does not exist yet. Move the action after the "Install files" action on the "Installation" screen.