testing jenkins docker

This commit is contained in:
Szakalakamaka
2020-09-30 11:43:04 +02:00
parent 5ff513cf17
commit 7c8fe06ea0
2 changed files with 31 additions and 18 deletions

34
.idea/workspace.xml generated
View File

@@ -210,20 +210,6 @@
<option name="presentableId" value="Default" />
<updated>1598862102028</updated>
</task>
<task id="LOCAL-00029" summary="new operation delete message">
<created>1599658106007</created>
<option name="number" value="00029" />
<option name="presentableId" value="LOCAL-00029" />
<option name="project" value="LOCAL" />
<updated>1599658106007</updated>
</task>
<task id="LOCAL-00030" summary="delete and update buttons for all messages table">
<created>1599668629804</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1599668629804</updated>
</task>
<task id="LOCAL-00031" summary="solved problem with binding lists between thymeleaf and controller&#10;added id filter for event searcher">
<created>1599739605273</created>
<option name="number" value="00031" />
@@ -553,7 +539,21 @@
<option name="project" value="LOCAL" />
<updated>1601453886631</updated>
</task>
<option name="localTasksCounter" value="78" />
<task id="LOCAL-00078" summary="testing jenkins docker">
<created>1601454390643</created>
<option name="number" value="00078" />
<option name="presentableId" value="LOCAL-00078" />
<option name="project" value="LOCAL" />
<updated>1601454390643</updated>
</task>
<task id="LOCAL-00079" summary="testing jenkins docker">
<created>1601455127386</created>
<option name="number" value="00079" />
<option name="presentableId" value="LOCAL-00079" />
<option name="project" value="LOCAL" />
<updated>1601455127386</updated>
</task>
<option name="localTasksCounter" value="80" />
<servers />
</component>
<component name="UnknownFeatures">
@@ -704,13 +704,13 @@
</state>
<state x="277" y="57" key="SettingsEditor/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600935670743" />
<state x="277" y="57" key="SettingsEditor/0.0.1536.824@0.0.1536.824" timestamp="1600868466042" />
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1601453545145">
<state x="361" y="145" key="Vcs.Push.Dialog.v2" timestamp="1601455128845">
<screen x="0" y="0" width="1536" height="824" />
</state>
<state x="451" y="183" key="Vcs.Push.Dialog.v2/-1920.0.1536.832/0.0.1920.1040@0.0.1920.1040" timestamp="1600275760386" />
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@0.0.1536.824" timestamp="1600350277680" />
<state x="2371" y="183" key="Vcs.Push.Dialog.v2/0.0.1536.824/1920.0.1920.1040@1920.0.1920.1040" timestamp="1600351824385" />
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1601453545145" />
<state x="361" y="145" key="Vcs.Push.Dialog.v2/0.0.1536.824@0.0.1536.824" timestamp="1601455128845" />
<state x="478" y="145" width="579" height="592" key="find.popup" timestamp="1599656923861">
<screen x="0" y="0" width="1536" height="824" />
</state>

15
Jenkinsfile vendored
View File

@@ -6,7 +6,20 @@ pipeline {
stages {
stage('Build') {
steps {
sh 'docker context create DEV --description \\"connection to DEV environment\\" --docker \\"host=ssh://jenkins@s5000xvn:22\\"'
sh "docker-compose build"
}
}
stage('Deploy') {
steps {
sh "docker-compose up -d"
sh "ssh jenkins@s5000xvn echo 'Dupa dupa dupa'"
sh "docker-compose context DEV up -d"
}
}
stage('Logs') {
steps {
sleep time: 1, unit: 'MINUTES'
sh 'ssh docker logs klaus'
}
}
}