3

I have a bash script on a server which is used to build a software project and then runs some scripts over it. Right now I need to access it via ssh and call it with a syntax like this: ./buildscript.sh branch_name it then pulls the code from git and builds the branch given as the parameter.
What I want is to make this easier accessible via a web GUI where I might see a dropdown list of available branches and a button to start the build process.
My question is with which technology can I achieve something like this? And how to start maybe?

Im grateful for any hints or tips! Thanks!

1
  • Can't you just use a PHP (or whatever web language you're into) web application which runs the bash script? Commented Jul 18, 2015 at 20:26

2 Answers 2

1

You can look into continuous integration tools such as Jenkins (or others) which provide the ability to kick off builds, tests, and deployments either in response to certain events or on demand.

The tools do take some effort to set up, so you'll have to decide whether the the extra complexity is worth it for what you want to accomplish.

Sign up to request clarification or add additional context in comments.

Comments

1

Thanks for the tips here! But I ended up using websocketd It's awesome simple and nice to use since you can just use std in and std out of a bash script as if it's directly accessed.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.