How to run a command from Jenkins pipeline to SQL service in PCF?How can I get Jenkins to execute a script...

Why restrict private health insurance?

Finding the minimum value of a function without using Calculus

Create chunks from an array

What is better: yes / no radio, or simple checkbox?

Is it a Cyclops number? "Nobody" knows!

Which country has more?

Giving a career talk in my old university, how prominently should I tell students my salary?

What is Tony Stark injecting into himself in Iron Man 3?

Sampling from Gaussian mixture models, when are the sampled data independent?

Does an unused member variable take up memory?

What would be the most expensive material to an intergalactic society?

How do I raise a figure (placed with wrapfig) to be flush with the top of a paragraph?

What happened to the colonial estates belonging to loyalists after the American Revolution?

What will happen if my luggage gets delayed?

Are these two graphs isomorphic? Why/Why not?

The (Easy) Road to Code

Trocar background-image com delay via jQuery

Can the Witch Sight warlock invocation see through the Mirror Image spell?

Professor forcing me to attend a conference, I can't afford even with 50% funding

Is divide-by-zero a security vulnerability?

(Codewars) Linked Lists-Sorted Insert

Does the US political system, in principle, allow for a no-party system?

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

What is the purpose of a disclaimer like "this is not legal advice"?



How to run a command from Jenkins pipeline to SQL service in PCF?


How can I get Jenkins to execute a script that it pulled from Git?Automatically start docker container's linked dependenciesWhy is Jenkins making temp files that are binaries?Integrate Amazon Elastic Container Registry with JenkinsConfusion with Jenkins Docker Plugin and Jenkins Docker SlavesJenkins Docker build slave - npm cache not workingJenkins container on Linux with powershelldockerized jenkins failed building dockerfile work dir issueJenkins Maven job has no “Maven Installation” optionDockerized Gitlab-runner can't find Gitlab container













0















We have MySQL database instance running in PCF(Pivotal cloud foundry), as shown here





Jenkins pipeline is suppose to create DB schema(.sql files) available in GitLab to database instance(db-service) using Liquibase plugin



To update database schema in this database instance, we are trying to follow below procedure using liquibase plugin:



Step 1) Create a new Docker container running maven tool in PCF



Step 2) Checkout .sql files(from GitLab) in Jenkins pipeline workspace. These files are have maven build support(to run mvn liquibase:update <host/port/credentials>) to run from Jenkins pipeline workspace.



Step 3) Make sure, Jenkins node has cf cli installed



Step 4) Run some cf cli command from Jenkins workspace to forward maven command mentioned in step_2, to run on Docker container. This will update DB schema in db_service.





1) What is the cf cli command to run from Jenkins workspace to forward mvn command of step_2 to run on docker container?



2) ssh support is not given by platform team, from Jenkins workspace to Docker container(or any instance) running in PCF. Do we require ssh support? Any alternate approach.. without using ssh...









share









New contributor




mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    We have MySQL database instance running in PCF(Pivotal cloud foundry), as shown here





    Jenkins pipeline is suppose to create DB schema(.sql files) available in GitLab to database instance(db-service) using Liquibase plugin



    To update database schema in this database instance, we are trying to follow below procedure using liquibase plugin:



    Step 1) Create a new Docker container running maven tool in PCF



    Step 2) Checkout .sql files(from GitLab) in Jenkins pipeline workspace. These files are have maven build support(to run mvn liquibase:update <host/port/credentials>) to run from Jenkins pipeline workspace.



    Step 3) Make sure, Jenkins node has cf cli installed



    Step 4) Run some cf cli command from Jenkins workspace to forward maven command mentioned in step_2, to run on Docker container. This will update DB schema in db_service.





    1) What is the cf cli command to run from Jenkins workspace to forward mvn command of step_2 to run on docker container?



    2) ssh support is not given by platform team, from Jenkins workspace to Docker container(or any instance) running in PCF. Do we require ssh support? Any alternate approach.. without using ssh...









    share









    New contributor




    mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      We have MySQL database instance running in PCF(Pivotal cloud foundry), as shown here





      Jenkins pipeline is suppose to create DB schema(.sql files) available in GitLab to database instance(db-service) using Liquibase plugin



      To update database schema in this database instance, we are trying to follow below procedure using liquibase plugin:



      Step 1) Create a new Docker container running maven tool in PCF



      Step 2) Checkout .sql files(from GitLab) in Jenkins pipeline workspace. These files are have maven build support(to run mvn liquibase:update <host/port/credentials>) to run from Jenkins pipeline workspace.



      Step 3) Make sure, Jenkins node has cf cli installed



      Step 4) Run some cf cli command from Jenkins workspace to forward maven command mentioned in step_2, to run on Docker container. This will update DB schema in db_service.





      1) What is the cf cli command to run from Jenkins workspace to forward mvn command of step_2 to run on docker container?



      2) ssh support is not given by platform team, from Jenkins workspace to Docker container(or any instance) running in PCF. Do we require ssh support? Any alternate approach.. without using ssh...









      share









      New contributor




      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      We have MySQL database instance running in PCF(Pivotal cloud foundry), as shown here





      Jenkins pipeline is suppose to create DB schema(.sql files) available in GitLab to database instance(db-service) using Liquibase plugin



      To update database schema in this database instance, we are trying to follow below procedure using liquibase plugin:



      Step 1) Create a new Docker container running maven tool in PCF



      Step 2) Checkout .sql files(from GitLab) in Jenkins pipeline workspace. These files are have maven build support(to run mvn liquibase:update <host/port/credentials>) to run from Jenkins pipeline workspace.



      Step 3) Make sure, Jenkins node has cf cli installed



      Step 4) Run some cf cli command from Jenkins workspace to forward maven command mentioned in step_2, to run on Docker container. This will update DB schema in db_service.





      1) What is the cf cli command to run from Jenkins workspace to forward mvn command of step_2 to run on docker container?



      2) ssh support is not given by platform team, from Jenkins workspace to Docker container(or any instance) running in PCF. Do we require ssh support? Any alternate approach.. without using ssh...







      ssh docker cloud jenkins maven





      share









      New contributor




      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share









      New contributor




      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share








      edited 52 secs ago







      mohet













      New contributor




      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 5 mins ago









      mohetmohet

      1




      1




      New contributor




      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      mohet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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
          });


          }
          });






          mohet is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957563%2fhow-to-run-a-command-from-jenkins-pipeline-to-sql-service-in-pcf%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          mohet is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          mohet is a new contributor. Be nice, and check out our Code of Conduct.













          mohet is a new contributor. Be nice, and check out our Code of Conduct.












          mohet is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • 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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f957563%2fhow-to-run-a-command-from-jenkins-pipeline-to-sql-service-in-pcf%23new-answer', 'question_page');
          }
          );

          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







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...