How to set JBOSS_HOME in jenkins for local serve
Im trying to intergrate jenkins to my local server. I have generated the Gradle build file. Now i need to make jenkins deploy that
.war file in my local server (jboss 7.x eap). In configure system, under jboss management builder, its asking for server details like local server, server name, jboss_name, jndi port etc.. i tried to give my local path address to jboss_ name but its saying 'its not look like correct jboss home directory'. How to set jboss_home for local server and trigger automatic deployment via jenkins?
jenkins jenkins-pipeline
add a comment |
Im trying to intergrate jenkins to my local server. I have generated the Gradle build file. Now i need to make jenkins deploy that
.war file in my local server (jboss 7.x eap). In configure system, under jboss management builder, its asking for server details like local server, server name, jboss_name, jndi port etc.. i tried to give my local path address to jboss_ name but its saying 'its not look like correct jboss home directory'. How to set jboss_home for local server and trigger automatic deployment via jenkins?
jenkins jenkins-pipeline
add a comment |
Im trying to intergrate jenkins to my local server. I have generated the Gradle build file. Now i need to make jenkins deploy that
.war file in my local server (jboss 7.x eap). In configure system, under jboss management builder, its asking for server details like local server, server name, jboss_name, jndi port etc.. i tried to give my local path address to jboss_ name but its saying 'its not look like correct jboss home directory'. How to set jboss_home for local server and trigger automatic deployment via jenkins?
jenkins jenkins-pipeline
Im trying to intergrate jenkins to my local server. I have generated the Gradle build file. Now i need to make jenkins deploy that
.war file in my local server (jboss 7.x eap). In configure system, under jboss management builder, its asking for server details like local server, server name, jboss_name, jndi port etc.. i tried to give my local path address to jboss_ name but its saying 'its not look like correct jboss home directory'. How to set jboss_home for local server and trigger automatic deployment via jenkins?
jenkins jenkins-pipeline
jenkins jenkins-pipeline
asked Nov 21 '18 at 11:51
Bruce wayneBruce wayne
83
83
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Take a look at this example setup below:
scripts/config-sample
#!/bin/bash
# The INSTALLERS_DIR must be relative to this directory
# It have to contains binaries like jboss-eap-6.4.0.zip, jboss-eap-6.4.*.patch.zip
INSTALLERS_DIR=../installers
# The CONFIGURATIONS_DIR must be relative to this directory
# It have to contains patch and additional files that will be added to JBOSS_DIR
CONFIGURATIONS_DIR=../configurations
# Scripts will show warnings?
VERBOSE=false
# JDK Installer is a RPM binary file
JDK_INSTALLER=jdk-8u144-linux-x64.rpm
# Binay file to extract JBoss (PATH is relative to INSTALLERS_DIR)
# These files are the original downloaded from https://access.redhat.com
JBOSS_INSTALLER_ZIP=jboss-eap-6.4.0.zip
JBOSS_PATCHES=(
jboss-eap-6.4.9-patch.zip
jboss-eap-6.4.16-patch.zip
)
# JBoss directory when extracted
JBOSS_DIR=jboss-eap-6.4
# User (operational system) that runs JBoss
JBOSS_USER=jboss
JBOSS_USER_PASSWORD='jb@3!2_'
# Group (operational system) that runs JBoss
JBOSS_GROUP=jboss
# Directory that will contains $JBOSS_DIR
JBOSS_INSTALL_DIR=/opt
# Link (bellow JBOSS_INSTALL_DIR) that will points to $JBOSS_DIR
JBOSS_LINK=jboss
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
# JBoss console log file
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
# Hostname of the machine that runs JBoss
JBOSS_HOST=`hostname -s`
# JBoss bind address (ip or hostname)
case "$OSTYPE" in
# In this case (linux), it is configured with IP address of the second interface
linux*) JBOSS_BIND_ADDRESS=`hostname -I | cut -d ' ' -f 2`;;
# We put a macOS alternative just to permit a jboss-copy-patches script execution
darwin*) JBOSS_BIND_ADDRESS=localhost;;
esac
# JBoss bind address management (ip or hostname)
JBOSS_BIND_ADDRESS_MANAGEMENT=$JBOSS_BIND_ADDRESS
# JBoss domain (master) address (ip or hostname)
JBOSS_DOMAIN_MASTER_ADDRESS=dc1
# JBoss admin username (to access console)
JBOSS_ADMIN_USER=admin
# JBoss admin password
JBOSS_ADMIN_PASSWORD='jbAdmin@123!'
# Default JBoss type
JBOSS_TYPE=slave
# Variable configurations depending on $JBOSS_HOST
case $JBOSS_HOST in
# If host is master, JBOSS_TYPE is master
$JBOSS_DOMAIN_MASTER_ADDRESS)
JBOSS_TYPE=master
;;
esac
# Host config file is JBOSS_TYPE dependant
JBOSS_HOST_CONFIG=host-${JBOSS_TYPE}.xml
So, the installation folder is the $JBOSS_HOME
folder
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
To deploy via gradle, take a look at this link.
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53411457%2fhow-to-set-jboss-home-in-jenkins-for-local-serve%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Take a look at this example setup below:
scripts/config-sample
#!/bin/bash
# The INSTALLERS_DIR must be relative to this directory
# It have to contains binaries like jboss-eap-6.4.0.zip, jboss-eap-6.4.*.patch.zip
INSTALLERS_DIR=../installers
# The CONFIGURATIONS_DIR must be relative to this directory
# It have to contains patch and additional files that will be added to JBOSS_DIR
CONFIGURATIONS_DIR=../configurations
# Scripts will show warnings?
VERBOSE=false
# JDK Installer is a RPM binary file
JDK_INSTALLER=jdk-8u144-linux-x64.rpm
# Binay file to extract JBoss (PATH is relative to INSTALLERS_DIR)
# These files are the original downloaded from https://access.redhat.com
JBOSS_INSTALLER_ZIP=jboss-eap-6.4.0.zip
JBOSS_PATCHES=(
jboss-eap-6.4.9-patch.zip
jboss-eap-6.4.16-patch.zip
)
# JBoss directory when extracted
JBOSS_DIR=jboss-eap-6.4
# User (operational system) that runs JBoss
JBOSS_USER=jboss
JBOSS_USER_PASSWORD='jb@3!2_'
# Group (operational system) that runs JBoss
JBOSS_GROUP=jboss
# Directory that will contains $JBOSS_DIR
JBOSS_INSTALL_DIR=/opt
# Link (bellow JBOSS_INSTALL_DIR) that will points to $JBOSS_DIR
JBOSS_LINK=jboss
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
# JBoss console log file
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
# Hostname of the machine that runs JBoss
JBOSS_HOST=`hostname -s`
# JBoss bind address (ip or hostname)
case "$OSTYPE" in
# In this case (linux), it is configured with IP address of the second interface
linux*) JBOSS_BIND_ADDRESS=`hostname -I | cut -d ' ' -f 2`;;
# We put a macOS alternative just to permit a jboss-copy-patches script execution
darwin*) JBOSS_BIND_ADDRESS=localhost;;
esac
# JBoss bind address management (ip or hostname)
JBOSS_BIND_ADDRESS_MANAGEMENT=$JBOSS_BIND_ADDRESS
# JBoss domain (master) address (ip or hostname)
JBOSS_DOMAIN_MASTER_ADDRESS=dc1
# JBoss admin username (to access console)
JBOSS_ADMIN_USER=admin
# JBoss admin password
JBOSS_ADMIN_PASSWORD='jbAdmin@123!'
# Default JBoss type
JBOSS_TYPE=slave
# Variable configurations depending on $JBOSS_HOST
case $JBOSS_HOST in
# If host is master, JBOSS_TYPE is master
$JBOSS_DOMAIN_MASTER_ADDRESS)
JBOSS_TYPE=master
;;
esac
# Host config file is JBOSS_TYPE dependant
JBOSS_HOST_CONFIG=host-${JBOSS_TYPE}.xml
So, the installation folder is the $JBOSS_HOME
folder
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
To deploy via gradle, take a look at this link.
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
add a comment |
Take a look at this example setup below:
scripts/config-sample
#!/bin/bash
# The INSTALLERS_DIR must be relative to this directory
# It have to contains binaries like jboss-eap-6.4.0.zip, jboss-eap-6.4.*.patch.zip
INSTALLERS_DIR=../installers
# The CONFIGURATIONS_DIR must be relative to this directory
# It have to contains patch and additional files that will be added to JBOSS_DIR
CONFIGURATIONS_DIR=../configurations
# Scripts will show warnings?
VERBOSE=false
# JDK Installer is a RPM binary file
JDK_INSTALLER=jdk-8u144-linux-x64.rpm
# Binay file to extract JBoss (PATH is relative to INSTALLERS_DIR)
# These files are the original downloaded from https://access.redhat.com
JBOSS_INSTALLER_ZIP=jboss-eap-6.4.0.zip
JBOSS_PATCHES=(
jboss-eap-6.4.9-patch.zip
jboss-eap-6.4.16-patch.zip
)
# JBoss directory when extracted
JBOSS_DIR=jboss-eap-6.4
# User (operational system) that runs JBoss
JBOSS_USER=jboss
JBOSS_USER_PASSWORD='jb@3!2_'
# Group (operational system) that runs JBoss
JBOSS_GROUP=jboss
# Directory that will contains $JBOSS_DIR
JBOSS_INSTALL_DIR=/opt
# Link (bellow JBOSS_INSTALL_DIR) that will points to $JBOSS_DIR
JBOSS_LINK=jboss
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
# JBoss console log file
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
# Hostname of the machine that runs JBoss
JBOSS_HOST=`hostname -s`
# JBoss bind address (ip or hostname)
case "$OSTYPE" in
# In this case (linux), it is configured with IP address of the second interface
linux*) JBOSS_BIND_ADDRESS=`hostname -I | cut -d ' ' -f 2`;;
# We put a macOS alternative just to permit a jboss-copy-patches script execution
darwin*) JBOSS_BIND_ADDRESS=localhost;;
esac
# JBoss bind address management (ip or hostname)
JBOSS_BIND_ADDRESS_MANAGEMENT=$JBOSS_BIND_ADDRESS
# JBoss domain (master) address (ip or hostname)
JBOSS_DOMAIN_MASTER_ADDRESS=dc1
# JBoss admin username (to access console)
JBOSS_ADMIN_USER=admin
# JBoss admin password
JBOSS_ADMIN_PASSWORD='jbAdmin@123!'
# Default JBoss type
JBOSS_TYPE=slave
# Variable configurations depending on $JBOSS_HOST
case $JBOSS_HOST in
# If host is master, JBOSS_TYPE is master
$JBOSS_DOMAIN_MASTER_ADDRESS)
JBOSS_TYPE=master
;;
esac
# Host config file is JBOSS_TYPE dependant
JBOSS_HOST_CONFIG=host-${JBOSS_TYPE}.xml
So, the installation folder is the $JBOSS_HOME
folder
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
To deploy via gradle, take a look at this link.
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
add a comment |
Take a look at this example setup below:
scripts/config-sample
#!/bin/bash
# The INSTALLERS_DIR must be relative to this directory
# It have to contains binaries like jboss-eap-6.4.0.zip, jboss-eap-6.4.*.patch.zip
INSTALLERS_DIR=../installers
# The CONFIGURATIONS_DIR must be relative to this directory
# It have to contains patch and additional files that will be added to JBOSS_DIR
CONFIGURATIONS_DIR=../configurations
# Scripts will show warnings?
VERBOSE=false
# JDK Installer is a RPM binary file
JDK_INSTALLER=jdk-8u144-linux-x64.rpm
# Binay file to extract JBoss (PATH is relative to INSTALLERS_DIR)
# These files are the original downloaded from https://access.redhat.com
JBOSS_INSTALLER_ZIP=jboss-eap-6.4.0.zip
JBOSS_PATCHES=(
jboss-eap-6.4.9-patch.zip
jboss-eap-6.4.16-patch.zip
)
# JBoss directory when extracted
JBOSS_DIR=jboss-eap-6.4
# User (operational system) that runs JBoss
JBOSS_USER=jboss
JBOSS_USER_PASSWORD='jb@3!2_'
# Group (operational system) that runs JBoss
JBOSS_GROUP=jboss
# Directory that will contains $JBOSS_DIR
JBOSS_INSTALL_DIR=/opt
# Link (bellow JBOSS_INSTALL_DIR) that will points to $JBOSS_DIR
JBOSS_LINK=jboss
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
# JBoss console log file
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
# Hostname of the machine that runs JBoss
JBOSS_HOST=`hostname -s`
# JBoss bind address (ip or hostname)
case "$OSTYPE" in
# In this case (linux), it is configured with IP address of the second interface
linux*) JBOSS_BIND_ADDRESS=`hostname -I | cut -d ' ' -f 2`;;
# We put a macOS alternative just to permit a jboss-copy-patches script execution
darwin*) JBOSS_BIND_ADDRESS=localhost;;
esac
# JBoss bind address management (ip or hostname)
JBOSS_BIND_ADDRESS_MANAGEMENT=$JBOSS_BIND_ADDRESS
# JBoss domain (master) address (ip or hostname)
JBOSS_DOMAIN_MASTER_ADDRESS=dc1
# JBoss admin username (to access console)
JBOSS_ADMIN_USER=admin
# JBoss admin password
JBOSS_ADMIN_PASSWORD='jbAdmin@123!'
# Default JBoss type
JBOSS_TYPE=slave
# Variable configurations depending on $JBOSS_HOST
case $JBOSS_HOST in
# If host is master, JBOSS_TYPE is master
$JBOSS_DOMAIN_MASTER_ADDRESS)
JBOSS_TYPE=master
;;
esac
# Host config file is JBOSS_TYPE dependant
JBOSS_HOST_CONFIG=host-${JBOSS_TYPE}.xml
So, the installation folder is the $JBOSS_HOME
folder
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
To deploy via gradle, take a look at this link.
Take a look at this example setup below:
scripts/config-sample
#!/bin/bash
# The INSTALLERS_DIR must be relative to this directory
# It have to contains binaries like jboss-eap-6.4.0.zip, jboss-eap-6.4.*.patch.zip
INSTALLERS_DIR=../installers
# The CONFIGURATIONS_DIR must be relative to this directory
# It have to contains patch and additional files that will be added to JBOSS_DIR
CONFIGURATIONS_DIR=../configurations
# Scripts will show warnings?
VERBOSE=false
# JDK Installer is a RPM binary file
JDK_INSTALLER=jdk-8u144-linux-x64.rpm
# Binay file to extract JBoss (PATH is relative to INSTALLERS_DIR)
# These files are the original downloaded from https://access.redhat.com
JBOSS_INSTALLER_ZIP=jboss-eap-6.4.0.zip
JBOSS_PATCHES=(
jboss-eap-6.4.9-patch.zip
jboss-eap-6.4.16-patch.zip
)
# JBoss directory when extracted
JBOSS_DIR=jboss-eap-6.4
# User (operational system) that runs JBoss
JBOSS_USER=jboss
JBOSS_USER_PASSWORD='jb@3!2_'
# Group (operational system) that runs JBoss
JBOSS_GROUP=jboss
# Directory that will contains $JBOSS_DIR
JBOSS_INSTALL_DIR=/opt
# Link (bellow JBOSS_INSTALL_DIR) that will points to $JBOSS_DIR
JBOSS_LINK=jboss
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
# JBoss console log file
JBOSS_CONSOLE_LOG=/var/log/jboss-as/console.log
# Hostname of the machine that runs JBoss
JBOSS_HOST=`hostname -s`
# JBoss bind address (ip or hostname)
case "$OSTYPE" in
# In this case (linux), it is configured with IP address of the second interface
linux*) JBOSS_BIND_ADDRESS=`hostname -I | cut -d ' ' -f 2`;;
# We put a macOS alternative just to permit a jboss-copy-patches script execution
darwin*) JBOSS_BIND_ADDRESS=localhost;;
esac
# JBoss bind address management (ip or hostname)
JBOSS_BIND_ADDRESS_MANAGEMENT=$JBOSS_BIND_ADDRESS
# JBoss domain (master) address (ip or hostname)
JBOSS_DOMAIN_MASTER_ADDRESS=dc1
# JBoss admin username (to access console)
JBOSS_ADMIN_USER=admin
# JBoss admin password
JBOSS_ADMIN_PASSWORD='jbAdmin@123!'
# Default JBoss type
JBOSS_TYPE=slave
# Variable configurations depending on $JBOSS_HOST
case $JBOSS_HOST in
# If host is master, JBOSS_TYPE is master
$JBOSS_DOMAIN_MASTER_ADDRESS)
JBOSS_TYPE=master
;;
esac
# Host config file is JBOSS_TYPE dependant
JBOSS_HOST_CONFIG=host-${JBOSS_TYPE}.xml
So, the installation folder is the $JBOSS_HOME
folder
# Full path to JBoss
JBOSS_HOME=$JBOSS_INSTALL_DIR/$JBOSS_LINK
To deploy via gradle, take a look at this link.
answered Nov 21 '18 at 21:11
dalmo.santosdalmo.santos
247
247
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
add a comment |
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi Dalmo, this works for linux server. I have windows server.
– Bruce wayne
Nov 22 '18 at 5:13
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
Hi. See the 4.3 section this link : access.redhat.com/documentation/en-us/… -- Can be called JBSS_HOME or EAP_HOME .
– dalmo.santos
Nov 22 '18 at 15:04
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53411457%2fhow-to-set-jboss-home-in-jenkins-for-local-serve%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown