Change Jira Base URL - jira

Is there a way to change the Base URL of a Jira instance.
JIRA 7.0.5
I remember it asked me when I started it up initially, but I can seem to find a way to change it.

Copy title of question and first google result: https://confluence.atlassian.com/doc/configuring-the-server-base-url-148592.html
Choose the cog icon , then choose General Configuration under Confluence Administration
Choose General Configuration in the left-hand panel
Choose Edit Enter the new URL in the Server Base URL text box
Choose Save
Changing the context path. If you change the context path of your base URL, you may also need to edit the web server's server.xmlfile to reflect the new path:
Stop the Confluence server.
Go to your Confluence 'destination directory'. This is the directory where the Confluence installation files are stored. For example, C:\Program Files\Atlassian\Confluence. Let's call this directory '{CONFLUENCE_INSTALLATION}'.
Edit the configuration file at {CONFLUENCE_INSTALLATION}\conf\server.xml.
Change the value of the path attribute in the Context element to reflect the context path. For example, if Confluence is running at http://www.foobar.com/confluence, then your path attribute should look like this:
<context path="/confluence" docBase="../confluence" debug="0" reloadable'"false" useHttpOnly="true">
Save the file.
Proxies. If you are running behind a proxy, ensure that the proxy name matches the base URL. For example: proxyName="foobar.com" proxyPort="443" scheme="https". This will make sure we are passing the information correctly.
This information needs to be added in the Connector element at {CONFLUENCE_INSTALLATION}\conf\server.xml.

Go to Admin->System->General Configuration
Click Edit Settings
Change Base URL and click Save

You can retrieve the base URL from the propertystring table:
select propertyvalue from propertyentry PE
join propertystring PS on PE.id=PS.id
where PE.property_key = 'jira.baseurl';
In order to update the Base URL, run the following update query in your JIRA database replacing the URL and restart JIRA.
update propertystring
set propertyvalue = 'http://jira.servername.com'
from propertyentry PE
where PE.id=propertystring.id
and PE.property_key = 'jira.baseurl';
more info follow this link

Crackerjoe is correct.
The suggestion given to do it with SQL is very bad advice. Using SQL on JIRA databases is to be avoided, especially when you can, and should, do it in the UI. If you do use SQL, make sure you have JIRA offline before you do it.

Related

Is there a method to display dynamic information to the user BEFORE a build?

Within the Jenkins UI, on the project page, you can use the Description Setter plugin to set a description AFTER a build. Is there any way to dynamically set this before a build? I would want to pull information from a file in the workspace that shows information about files that will be changed when the user builds the project.
Edit: While I haven't found a way to dynamically set the project description, I did find that I can create an Active Choices Reactive Reference Parameter, give it a descriptive name that serves as a title, and then read the contents of a file containing HTML with a Groovy script like so..
// The contents of the file should be HTML
String contents = new File('/tmp/some_file.html').text
return contents
So I made this my last parameter, and it shows the information that I need to show, before the end user clicks the build button. Solves my problem.
I'm going to leave this question open though, in case someone has a better idea.
While I haven't found a way to dynamically set the project description, I did find that I can create an Active Choices Reactive Reference Parameter (this requires the Active Choices plugin),
Give it a descriptive name that serves as a title, and then read the contents of a file containing HTML with a Groovy script like so..
// The contents of the file should be HTML
String contents = new File('/tmp/some_file.html').text
return contents
You will need to select a Choice Type of: Formatted HTML.
So I made this my last parameter, and it shows the information that I need to show, before the end user clicks the build button. Solves my problem.

How can I execute tests on specific browser through Jenkins using choice parameters?

I want to perform testing on specific browser through Jenkins i.e. if I select firefox or chrome browser from dropdown and click on build to process further. How can I make it working. We are using in built automation framework.What if I maintain different testng.xml files as respective to browser. But again how can achieve it using same approach.
Let me know end to end best solution for it.
Thanks.
You can always use build with parameters and select the browser you want from a select element.
Then, you set the browser you want it to be executed on to be a parameter inside your pipeline file instead of changing all the parameters like you are doing right now(I guess?) or using multiple builds.
If you could expand on what you currently have the way you are using it right now, I'll be glad to help.
You can set a parameter in jenkins where you need to develop your code to read that parameter.
This parameter is called Choice parameter under "MAVEN INFO PLUGIN CONFIGURATION" in general settings of project in jenkins.
Check on "This project is parameterized"
add name as "Browser" and choices as your browser names you want to specify like
IE
EDGE
CHROME
Above process will let you trigger tests using choice parameters but one more change needs to be done is at "Goals and options" under BUILD section.
Here please use (test -DBrowser="$Browser") which lets you pass choice parameter value selected with Browser as key.
Try below code in your utilities to read browser type and so use driver type accordingly.
String DriverType = System.getProperty("Browser");
if(DriverType.contains("IE")) {
DriverType = "IE";
} else {
DriverType ="Edge";
} return DriverType;

TFS template rule on Area Path

We are using TFS 2017 Update 3 on premise. I have the ability to edit the process template for our projects, and wish to make a change to the area path. I wish to implement a rule on the Area Path to prevent it from being left as the root project name when a new feature/story/bug/task is created. I've tried to use PROHIBITEDVALUES with the root path explicitly stated, but when I save the template I get the following error:
Microsoft Visual Studio
Work Item Type: Bug
TF26062: Rule '' is not supported for the field 'System.AreaPath'.
There were validation errors. Continuing to save may cause the file to become unloadable, do you want to continue?
Yes No
If I click Yes, I then get:
Microsoft Visual Studio
Failed to save the 'Bug' Work Item Type to the server.
TF26062: Rule '' is not supported for the field 'System.AreaPath'.
OK
So my question is, what rule can I apply to the Area Path field to prevent users from saving work items with the root/default area?
Based on my test all the existing rules are not available for the System.AreaPath filed. No built-in rules to validate the Area Path.
However you can follow below steps to change the default Area Path to prevent it from being left as the root project name when a new feature/story/bug/task is created.
Navigate to Settings --> Work --> Areas
Click the link: the default team's settings.
Area --> Default Area --> Change --> Select the specific area -->
Set
Besides, if you want to validate the Area Path, as a workaround you can create a new field to assist on that, you can refer to this article for details: Work Item Rules Workarounds: Validating Area Path

Prestashop remove /presta on url

As the title says, I want to remove the /presta from my URL.
I can access it now with domain.com/presta but if I change from Preferences > SEO & URL > Base URL as "/", I can't access the site and if I connect to admin panel it's without GUI, just text.
Seems a little bit confusing.
Thanks in advance, sorry for any newbie mistake I've been working on this the whole day and it's my first try on presta.
i think all Prestashop files are inside a folder named "presta" instead of (for example) the httpdocs folder. Change shop domain and ssl domain to your domain name. Set base uri as / and press save. Now move all Prestashop files from the presta folder to the httpdocs folder. The presta folder should be empty, so you can remove it.
Current situation:
You prestashop files are stored in YOURSTORE/presta/
Request situation:
removing the subfolder /presta/ so people can enter the url YOURSTORE/ to acces your prestashop webshop.
What you must do:
copy all your files inside YOURSTORE/presta/ to YOURSTORE.
remove .htaccess (located here (after step 1): YOURSTORE).
Update your prestashop database: go to table ps_shop_url and change value:
physical_uri -> /presta/
To
physical_uri -> /
You should be able to enter your store now by visiting YOURSTORE.com instead of YOURSTORE.com/presta/

Typo3 : using typoscript to modify the base-url

I am trying out TYPO3's introduction package. For that I am using Xampp on my computer.
I have installed it in a subdirectory, but since it uses "real-url", I need to modify the generated links, so that instead of http://localhost/about-typo3/ I get http://localhost/subfolder/about-typo3/
I believe it must be done via "typo-script", and from what I have read on the Internet, this line should do the job :
config.baseURL = http://localhost/subfolder/
But I don't know where I should put it. I have tried different locations, but with no apparent effect.
So what I would like to know is : am I on the good path for what I need to do, and if yes, what should I try now ?
This is a bug in the 4.6 Introduction Package. 4.7 will ship with a correct version, so you might just want to go ahead and try the Introduction Package from 4.7RC2 (Preview Releases).
For now, just choose Template in the module menu on the left. Then use the dropdown to select Constant Editor. Now choose the page HOME in the pagetree on the middle.
Now use the second dropdown to select CONFIG. There modify the topmost setting Absolute URI prefix. Input your full domain without the last slash (/). That means copy your current URL from the browser and strip /typo3/backend.php. Now save with the little save icon in the top toolbar.
This will also invalidate all caches for you (because you changed the topmost template). No need to install extra extensions or to do this manually.
Alternative you can fix the actual bug. Go to template module and select the folder TypoScript Templates / page_configuration. Now select Info/Modify instead of Constant Editor and directly above the table page.config. The click the pencil left of Setup. Find the line absRefPrefix = {$config.absRefPrefix}/. This should be around line 62 (4.7RC2). Remove the last slash (/) from that line and save. Because you are not on the topmost template, you need to clear the cache. On the topright of your screen, you can find the yellow flash icon. Click it and select Clear all caches (red flash). Now go to you website again.
A general note about (config.)baseURL. This is more a hack, because it just tells the browser to behave as if the website would be at another place. The correct way is to create correct links in first place. You should use (config.)absRefPrefix instead. To make this work in auto mode, it must be completely empty (config.absRefPrefix =).
Do not use baseURL any more. The next Introduction Package will not have this setting.
Yet another note: If you use the config.absRefPrefix, you have to include the last slash (/). The only reason why you do not have to do so above (in the constants), is because it is hardcoded in the template and thus also preventing the automatic detection to work.
If you are using different hosts, you can use typoscript conditions in your root template:
# Default:
config.baseURL = http://www.example.com/
[globalString = ENV:HTTP_HOST=sub1.example.com]
config.baseURL = http://sub1.example.com/
[global]
[globalString = ENV:HTTP_HOST=sub2.example.com]
config.baseURL = http://sub2.example.com/
[global]
if you are using introduction package. there is Constant for set the base url
Go to 'Template' and 'Constant Editor.. you can find 'Domain name for Base URL [config.domain]' .. for setting base url
also you can put the
config.baseURL = http://localhost/subfolder/
on 'Info Modify' Setup field
hope will help you .. sorry for my bad english

Resources