-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide permissions to modify dependabot-core directory
- The dependaot user in jenkins currently cannot create directories inside tmp - Provide access to create directories inside all of dependabot-core
- Loading branch information
1 parent
4dc09d7
commit c121e69
Showing
11 changed files
with
12 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ vendor | |
coverage/ | ||
.ruby-gemset | ||
.ruby-version | ||
/.ssh |
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 |
---|---|---|
|
@@ -220,8 +220,7 @@ docker run -dit \ | |
-v "$(pwd)/omnibus/lib:$CODE_DIR/omnibus/lib" \ | ||
-v "$(pwd)/omnibus/spec:$CODE_DIR/omnibus/spec" \ | ||
-v "$(pwd)/omnibus/script:$CODE_DIR/omnibus/script" \ | ||
-v "$(pwd)/tmp:/$CODE_DIR/tmp" \ | ||
-v "${HOME}/.ssh:/home/dependabot/.ssh" \ | ||
-v "$(pwd)/tmp:/$CODE_DIR/tmp" \ | ||
--name "$CONTAINER_NAME" \ | ||
-e SSH_AUTH_SOCK=$SSH_AUTH_SOCK \ | ||
-e PACKAGE_NAME=$PACKAGE_NAME \ | ||
|
@@ -233,7 +232,13 @@ docker run -dit \ | |
"$IMAGE_NAME" "${CONTAINER_ARGS[@]}" | ||
|
||
#docker exec ${CONTAINER_NAME} bash -c 'echo $SSH_AUTH_SOCK' | ||
docker exec ${CONTAINER_NAME} bash -c 'eval $(ssh-agent); | ||
|
||
#docker exec ${CONTAINER_NAME} bash -c 'chmod dependabot:dependabot /home/dependabot/dependabot-core/tmp'; | ||
docker exec ${CONTAINER_NAME} bash -c 'ls -ald /home/dependabot/dependabot-core/tmp; | ||
ls -ald /home/dependabot/dependabot-core; | ||
whoami; | ||
chmod 777 /home/dependabot/dependabot-core; | ||
eval $(ssh-agent); | ||
for c in $(ssh -p 29418 [email protected] gerrit query --current-patch-set project:${REPO_NAME} branch:feature/dependabot | grep revision | tr -s " " | cut -d " " -f 3); \ | ||
do ssh -p 29418 [email protected] gerrit review $c --abandon; \ | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.