Saloed / JsonFormatter

Repository for study project
GNU General Public License v3.0
0 stars 0 forks source link

Task 3 #16

Open SemenMartynov opened 6 years ago

SemenMartynov commented 6 years ago

Go ahead and implement task 3

Saloed commented 6 years ago
  1. I can run build manually, but i cant setup webhook because jenkins running in docker on localhost
  2. Am i really need to install docker in docker with jenkins to complete build process?
Started by user V.Sobol
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/trpo
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Preparation)
[Pipeline] echo
Cloning project repository
[Pipeline] git
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/Saloed/JsonFormatter.git # timeout=10
Fetching upstream changes from https://github.com/Saloed/JsonFormatter.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/Saloed/JsonFormatter.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 484392c9cbea7a3f2ac971d1e9fa07a0fe0ccadd (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 484392c9cbea7a3f2ac971d1e9fa07a0fe0ccadd
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D master # timeout=10
 > git checkout -b master 484392c9cbea7a3f2ac971d1e9fa07a0fe0ccadd
Commit message: "Merge pull request #17 from Saloed/fix-resource-name"
 > git rev-list --no-walk 484392c9cbea7a3f2ac971d1e9fa07a0fe0ccadd # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] echo
Start gradle build
[Pipeline] sh
[trpo] Running shell script
+ ./gradlew
Starting a Gradle Daemon (subsequent builds will be faster)
:compileKotlin UP-TO-DATE
:compileJava NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:fatJar UP-TO-DATE
:docker FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':docker'.
> java.io.IOException: Cannot run program "docker": error=2, No such file or directory
SemenMartynov commented 6 years ago

Nope, you can just throw in the docker socket, if i understand your question correctly.

Saloed commented 6 years ago

Is task 3 complete now?

Started by user V Sobol
Obtained Jenkinsfile from git https://github.com/Saloed/JsonFormatter/
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/trpo
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Preparation)
[Pipeline] git
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/Saloed/JsonFormatter # timeout=10
Fetching upstream changes from https://github.com/Saloed/JsonFormatter
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/Saloed/JsonFormatter +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 52b381002df56d00855f8ce3a074f0a0f1d6d86a (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 52b381002df56d00855f8ce3a074f0a0f1d6d86a
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D master # timeout=10
 > git checkout -b master 52b381002df56d00855f8ce3a074f0a0f1d6d86a
Commit message: "configure jenkins build"
 > git rev-list --no-walk 54056749fbbb016eb80ab4edd13ab4a082a28bd2 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] sh
[trpo] Running shell script
+ ./gradlew docker
Starting a Gradle Daemon (subsequent builds will be faster)
:compileKotlin UP-TO-DATE
:compileJava NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:fatJar UP-TO-DATE
:docker
Sending build context to Docker daemon   1.14MB

Step 1/5 : FROM openjdk:8
 ---> 7c57090325cc
Step 2/5 : ENV SERVER_PORT 80
 ---> Using cache
 ---> 48a21cdf3387
Step 3/5 : EXPOSE 80
 ---> Using cache
 ---> d9be9f7077ec
Step 4/5 : ADD JsonFormatter-all-0.02.jar opt/JsonFormatter-all-0.02.jar
 ---> Using cache
 ---> abda943dbdaa
Step 5/5 : CMD ["java", "-jar", "opt/JsonFormatter-all-0.02.jar"]
 ---> Using cache
 ---> af9895d1e9f4
Successfully built af9895d1e9f4
Successfully tagged validation-server:0.02

BUILD SUCCESSFUL in 3s
3 actionable tasks: 1 executed, 2 up-to-date
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
SemenMartynov commented 6 years ago

@Ikhoziainov can you have a look?

Saloed commented 6 years ago

Please, somebody, check this task @SemenMartynov @Ikhoziainov