Last active
August 29, 2015 14:01
-
-
Save mdaliejaz/238595cbb4d25cbd0aa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pipelines group="GeekNight"> | |
<pipeline name="build"> | |
<materials> | |
<git url="https://github.com/mdaliejaz/samplerepo.git" /> | |
</materials> | |
<stage name="ModuleOne"> | |
<jobs> | |
<job name="jobOne"> | |
<tasks> | |
<exec command="mvn" workingdir="module1"> | |
<arg>clean</arg> | |
<arg>test</arg> | |
<arg>-Dtest=com.sample.moduleone.ClassOneTest</arg> | |
<runif status="passed" /> | |
</exec> | |
</tasks> | |
</job> | |
<job name="jobTwo"> | |
<tasks> | |
<exec command="mvn" workingdir="module1"> | |
<arg>clean</arg> | |
<arg>test</arg> | |
<arg>-Dtest=com.sample.moduleone.ClassTwoTest</arg> | |
<runif status="passed" /> | |
</exec> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
<stage name="ModuleTwo"> | |
<jobs> | |
<job name="jobOne"> | |
<tasks> | |
<exec command="mvn" workingdir="module2"> | |
<arg>clean</arg> | |
<arg>test</arg> | |
<arg>-Dtest=com.sample.moduletwo.ClassOneTest</arg> | |
<runif status="passed" /> | |
</exec> | |
</tasks> | |
</job> | |
<job name="jobTwo"> | |
<tasks> | |
<exec command="mvn" workingdir="module2"> | |
<arg>clean</arg> | |
<arg>test</arg> | |
<arg>-Dtest=com.sample.moduletwo.ClassTwoTest</arg> | |
<runif status="passed" /> | |
</exec> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
<stage name="Package"> | |
<jobs> | |
<job name="package"> | |
<tasks> | |
<exec command="mvn"> | |
<arg>clean</arg> | |
<arg>package</arg> | |
</exec> | |
</tasks> | |
<artifacts> | |
<artifact src="module1/target/module1-1.0.jar" /> | |
<artifact src="module2/target/module2-1.0.jar" /> | |
</artifacts> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
<pipeline name="smoke"> | |
<materials> | |
<pipeline pipelineName="build" stageName="Package" /> | |
</materials> | |
<stage name="smokeOnChrome"> | |
<jobs> | |
<job name="featuteOneTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
<job name="featureTwoTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
<stage name="smokeOnIE"> | |
<jobs> | |
<job name="featuteOneTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
<job name="featureTwoTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
<pipeline name="acceptance"> | |
<materials> | |
<pipeline pipelineName="build" stageName="Package" /> | |
</materials> | |
<stage name="acceptanceOnChrome"> | |
<jobs> | |
<job name="featuteOneTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
<job name="featureTwoTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
<stage name="acceptanceOnIE"> | |
<jobs> | |
<job name="featuteOneTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
<job name="featureTwoTests"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
<pipeline name="manualTesting"> | |
<materials> | |
<pipeline pipelineName="build" stageName="Package" /> | |
</materials> | |
<stage name="defaultStage"> | |
<approval type="manual" /> | |
<jobs> | |
<job name="defaultJob"> | |
<tasks> | |
<exec command="ls" /> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
<pipeline name="DeployStaging"> | |
<materials> | |
<pipeline pipelineName="acceptance" stageName="acceptanceOnIE" /> | |
<pipeline pipelineName="smoke" stageName="smokeOnIE" /> | |
<pipeline pipelineName="manualTesting" stageName="defaultStage" /> | |
</materials> | |
<stage name="defaultStage"> | |
<jobs> | |
<job name="defaultJob"> | |
<tasks> | |
<fetchartifact pipeline="build/smoke" stage="Package" job="package" srcfile="module1-1.0.jar"> | |
<runif status="passed" /> | |
</fetchartifact> | |
<fetchartifact pipeline="build/smoke" stage="Package" job="package" srcfile="module2-1.0.jar"> | |
<runif status="passed" /> | |
</fetchartifact> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
<pipeline name="DeployToProd"> | |
<materials> | |
<pipeline pipelineName="DeployStaging" stageName="defaultStage" /> | |
</materials> | |
<stage name="defaultStage"> | |
<approval type="manual" /> | |
<jobs> | |
<job name="defaultJob"> | |
<tasks> | |
<fetchartifact pipeline="build/smoke/DeployStaging" stage="Package" job="package" srcfile="module1-1.0.jar"> | |
<runif status="passed" /> | |
</fetchartifact> | |
<fetchartifact pipeline="build/smoke/DeployStaging" stage="Package" job="package" srcfile="module2-1.0.jar"> | |
<runif status="passed" /> | |
</fetchartifact> | |
</tasks> | |
</job> | |
</jobs> | |
</stage> | |
</pipeline> | |
</pipelines> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the virtual box: | |
To open terminal ctrl+alt+t | |
To open a new tab in terminal ctrl+shift+t | |
Start Go Server | |
Change directory to go-server | |
(assuming the server is being started from the virtual box) | |
$cd ~/user_session/zip_installer/go-server-<version> | |
Add executable permission to server.sh | |
$chmod +x server.sh | |
Run the script to start the server | |
$./server.sh | |
Start Go Agent | |
Change directory to go-agent | |
(assuming the agent is being started from the virtual box) | |
$cd ~/user_session/zip_installer/go-agent-<version> | |
Add executable permission to agent.sh | |
$chmod +x agent.sh | |
Run the script to start the agent | |
$./agent.sh | |
Sample Git Repo url: https://github.com/mdaliejaz/samplerepo.git | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment