adding relation between git and jenkins
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am new to juju,and i deployed two applications jenkins and git,
i am trying to add relation between the two charms,but i am not able to do.
i was configured below file in hooks as blow.
$cat server-relation-joined
#!/bin/bash
set -eux
relation-set hostname=`unit-get private-address` public-address=`unit-get public-address`
root@myStation/git/hooks#
root@myStation/git/hooks# ls
config-changed hooks.py install server-relation-joined start stop upgrade-charm
root@myStation/git/hooks# vi server-relation-joined
root@myStation/git/hooks# cd ..
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: Changed file owned by another layer: hooks/server-relation-joined
build: Unable to continue due to unexpected modifications (try --force)
root@myStation/git# cd ..
root@myStation# charm build
build: Composing into /root/charms/trusty
build: Destination charm directory: /root/charms/trusty/trusty/trusty
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: trusty (from .)
build: At least one layer must provide metadata.yaml
root@myStation# ls
and from the jenkins side i was configured as below.
$ cat server-relation-changed
#!/bin/bash
set -eux
server_address=`relation-get hostname`
if [ -z "$server_address" ]; then
juju-log "No data sent yet"
exit 0
fi
$
root@myStation/git# vi metadata.yaml
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: git-server (from .)
proof: I: metadata name (git-server) must match directory name (git) exactly for local deployment.
is there anything i need to configure?
14.04 juju git jenkins
add a comment |Â
up vote
0
down vote
favorite
I am new to juju,and i deployed two applications jenkins and git,
i am trying to add relation between the two charms,but i am not able to do.
i was configured below file in hooks as blow.
$cat server-relation-joined
#!/bin/bash
set -eux
relation-set hostname=`unit-get private-address` public-address=`unit-get public-address`
root@myStation/git/hooks#
root@myStation/git/hooks# ls
config-changed hooks.py install server-relation-joined start stop upgrade-charm
root@myStation/git/hooks# vi server-relation-joined
root@myStation/git/hooks# cd ..
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: Changed file owned by another layer: hooks/server-relation-joined
build: Unable to continue due to unexpected modifications (try --force)
root@myStation/git# cd ..
root@myStation# charm build
build: Composing into /root/charms/trusty
build: Destination charm directory: /root/charms/trusty/trusty/trusty
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: trusty (from .)
build: At least one layer must provide metadata.yaml
root@myStation# ls
and from the jenkins side i was configured as below.
$ cat server-relation-changed
#!/bin/bash
set -eux
server_address=`relation-get hostname`
if [ -z "$server_address" ]; then
juju-log "No data sent yet"
exit 0
fi
$
root@myStation/git# vi metadata.yaml
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: git-server (from .)
proof: I: metadata name (git-server) must match directory name (git) exactly for local deployment.
is there anything i need to configure?
14.04 juju git jenkins
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am new to juju,and i deployed two applications jenkins and git,
i am trying to add relation between the two charms,but i am not able to do.
i was configured below file in hooks as blow.
$cat server-relation-joined
#!/bin/bash
set -eux
relation-set hostname=`unit-get private-address` public-address=`unit-get public-address`
root@myStation/git/hooks#
root@myStation/git/hooks# ls
config-changed hooks.py install server-relation-joined start stop upgrade-charm
root@myStation/git/hooks# vi server-relation-joined
root@myStation/git/hooks# cd ..
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: Changed file owned by another layer: hooks/server-relation-joined
build: Unable to continue due to unexpected modifications (try --force)
root@myStation/git# cd ..
root@myStation# charm build
build: Composing into /root/charms/trusty
build: Destination charm directory: /root/charms/trusty/trusty/trusty
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: trusty (from .)
build: At least one layer must provide metadata.yaml
root@myStation# ls
and from the jenkins side i was configured as below.
$ cat server-relation-changed
#!/bin/bash
set -eux
server_address=`relation-get hostname`
if [ -z "$server_address" ]; then
juju-log "No data sent yet"
exit 0
fi
$
root@myStation/git# vi metadata.yaml
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: git-server (from .)
proof: I: metadata name (git-server) must match directory name (git) exactly for local deployment.
is there anything i need to configure?
14.04 juju git jenkins
I am new to juju,and i deployed two applications jenkins and git,
i am trying to add relation between the two charms,but i am not able to do.
i was configured below file in hooks as blow.
$cat server-relation-joined
#!/bin/bash
set -eux
relation-set hostname=`unit-get private-address` public-address=`unit-get public-address`
root@myStation/git/hooks#
root@myStation/git/hooks# ls
config-changed hooks.py install server-relation-joined start stop upgrade-charm
root@myStation/git/hooks# vi server-relation-joined
root@myStation/git/hooks# cd ..
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: Changed file owned by another layer: hooks/server-relation-joined
build: Unable to continue due to unexpected modifications (try --force)
root@myStation/git# cd ..
root@myStation# charm build
build: Composing into /root/charms/trusty
build: Destination charm directory: /root/charms/trusty/trusty/trusty
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: trusty (from .)
build: At least one layer must provide metadata.yaml
root@myStation# ls
and from the jenkins side i was configured as below.
$ cat server-relation-changed
#!/bin/bash
set -eux
server_address=`relation-get hostname`
if [ -z "$server_address" ]; then
juju-log "No data sent yet"
exit 0
fi
$
root@myStation/git# vi metadata.yaml
root@myStation/git# charm build
build: Composing into /root/charms/trusty/git
build: Please add a `repo` key to your layer.yaml, with a url from which your layer can be cloned.
build: The top level layer expects a valid layer.yaml file
build: Processing layer: git-server (from .)
proof: I: metadata name (git-server) must match directory name (git) exactly for local deployment.
is there anything i need to configure?
14.04 juju git jenkins
edited May 24 at 18:52
![](https://i.stack.imgur.com/jsj6K.jpg?s=32&g=1)
![](https://i.stack.imgur.com/jsj6K.jpg?s=32&g=1)
Philippe Gachoud
2,9772336
2,9772336
asked May 24 at 16:55
naveen kumar
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1039910%2fadding-relation-between-git-and-jenkins%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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