Factories can and should be a part of your DevOps workflow. We want to have it be possible to launch an on-demand workspace tied to every code commit and version label. In order to do this, generating Factory URLs as part of scripts and other command line interfaces is necessary.
We have developed scripts for bash shell and Windows batch environments.
- Download the Windows batch shell script file for your own use here
- Download the bash shell script file for your own use here
You can use these shell scripts to either generate Factory URLs as string outputs, or you can have a Factory URL invoked directly from the command line. Invoking a Factory URL from the command line will launch a browser of your choice. Factories can be created by passing in the appropriate parameters, or you can have the shell scripts call the RESTful API to generate the encoded Factory directly.
The shell scripts provide the list of parameters that you can pass in. Here is a sample invocation of the bash script to generate a Spring Factory and then to not launch the browser with that Factory afterwards.
sh factory --param pname=untitled --param idcommit=dd923e52faea49dfe78e200eebfda384e381c4d0 --param wname=andrew00x --param action=openproject --param ptype=Spring --param vcsurl=http://codenvy.com/git/78/7d/78/workspacelipl9oygqsf81jz3/untitled --nl