-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ pipeline { | |
branches: [[name: 'origin/main']], | ||
userRemoteConfigs: [[ | ||
credentialsId: 'github-ssh', | ||
url : '[email protected]:[각자의 github 계정/fastcampus-jenkins.git'] | ||
url : '[email protected]:[각자의 github 계정]/fastcampus-jenkins.git'] | ||
], | ||
extensions: [[$class: 'SparseCheckoutPaths', sparseCheckoutPaths: [[path: 'projects/spring-app']]]] | ||
) | ||
|
@@ -55,13 +55,13 @@ pipeline { | |
writeFile( | ||
file:"settings.gradle.kts", | ||
text: """ | ||
buildCache { | ||
remote<HttpBuildCache> { | ||
url = uri("http://build-cache-node:5071/cache/") | ||
isPush = true | ||
setAllowInsecureProtocol(true) | ||
} | ||
} | ||
buildCache { | ||
remote<HttpBuildCache> { | ||
url = uri("http://build-cache-node:5071/cache/") | ||
isPush = true | ||
setAllowInsecureProtocol(true) | ||
} | ||
} | ||
""" | ||
) */ | ||
|
||
|
@@ -122,11 +122,11 @@ pipeline { | |
* gradle remote build cache 사용 | ||
- 빌드 캐시 서버 실행 | ||
|
||
docker run --detach --rm \ | ||
docker run -d --rm \ | ||
--hostname build-cache-node \ | ||
--name build-cache-node \ | ||
--network practice \ | ||
--volume ~/practice/build-cache-node:/data \ | ||
--volume ${HOME}/practice/build-cache-node:/data \ | ||
--publish 5071:5071 \ | ||
gradle/build-cache-node:15.0 \ | ||
start | ||
|
@@ -145,13 +145,13 @@ pipeline { | |
writeFile( | ||
file:"settings.gradle.kts", | ||
text: """ | ||
buildCache { | ||
remote<HttpBuildCache> { | ||
url = uri("http://build-cache-node:5071/cache/") | ||
isPush = true | ||
setAllowInsecureProtocol(true) | ||
} | ||
} | ||
buildCache { | ||
remote<HttpBuildCache> { | ||
url = uri("http://build-cache-node:5071/cache/") | ||
isPush = true | ||
setAllowInsecureProtocol(true) | ||
} | ||
} | ||
""" | ||
) | ||
|
||
|