adding relation between git and jenkins

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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?







share|improve this question


























    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?







    share|improve this question
























      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?







      share|improve this question














      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?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 24 at 18:52









      Philippe Gachoud

      2,9772336




      2,9772336










      asked May 24 at 16:55









      naveen kumar

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          Which professions warranted travel in Medieval times?

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          Trouble downloading packages list due to a “Hash sum mismatch” error