Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new feature to backup jenkins relying on thinBackup plugin #638

Merged
merged 10 commits into from
Jun 15, 2022

Conversation

jxr98
Copy link
Contributor

@jxr98 jxr98 commented Sep 22, 2021

Make sure that you've checked the boxes below before you submit PR:

Always

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Written well with PR title, we generate the release notes base on that

For the bug fixes or features only

  • Quality Gate Passed. Change this URL to your PR.
  • The coverage is xxx on the new lines
  • I've tested it by manual in the following platform
    • MacOS
    • Linux
    • Windows
  • Unit Test covered
  • e2e Test covered

jxr98 and others added 7 commits September 22, 2021 13:08
Update job_log.go

Create docker_run.go

Update docker_run.go

Update docker_run.go

Update docker_run.go

Update docker_run.go

Update docker_run.go

Update job_log.go

Update go.mod

Update docker_run.go

Update docker_run.go
@codecov
Copy link

codecov bot commented Sep 22, 2021

Codecov Report

Merging #638 (92e4afb) into master (cd3ef72) will not change coverage.
The diff coverage is n/a.

❗ Current head 92e4afb differs from pull request most recent head 3cf15f6. Consider uploading reports for the commit 3cf15f6 to get more accurate results

@@           Coverage Diff           @@
##           master     #638   +/-   ##
=======================================
  Coverage   37.98%   37.98%           
=======================================
  Files          13       13           
  Lines         416      416           
=======================================
  Hits          158      158           
  Misses        246      246           
  Partials       12       12           
Flag Coverage Δ
unittests 37.98% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0a0e878...3cf15f6. Read the comment docs.

@jxr98 jxr98 force-pushed the backup branch 3 times, most recently from a76928c to 148cb92 Compare September 22, 2021 05:45
@jxr98
Copy link
Contributor Author

jxr98 commented Sep 22, 2021

This function backs up global and job specific configurations relying on thinBackup plugin. I found an url which can trigger thinBackup to backup, but it doesn't return any message. Thus, jcli cannot handle errors which may happen and cannot make sure that the backup succeeded. I figured out a solution which is the --check flag. If jcli can access the backup directory set in thinBackup plugin, '--check true' is recommended to be parsed to backup command and then jcli will check if a new directory which follows a name pattern is created.

@jxr98 jxr98 force-pushed the backup branch 2 times, most recently from 65088a1 to 35f7499 Compare September 22, 2021 06:16
@jxr98 jxr98 changed the title Add new feature to backup jenkins relying on thinBackup plugin WIP: Add new feature to backup jenkins relying on thinBackup plugin Sep 24, 2021
@LinuxSuRen
Copy link
Member

still working on this PR?

@jxr98
Copy link
Contributor Author

jxr98 commented Sep 27, 2021

still working on this PR?

I think it is done for now and I created a pull request in thinBackup plugin repository. The pr is waiting to be reviewed. Now this backup function can not check if backup succeeds in remote computer.

@LinuxSuRen
Copy link
Member

I think it is done for now

WIP means working in progress

@jxr98 jxr98 changed the title WIP: Add new feature to backup jenkins relying on thinBackup plugin Add new feature to backup jenkins relying on thinBackup plugin Sep 28, 2021
@LinuxSuRen LinuxSuRen merged commit 9dc48d8 into jenkins-zh:master Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants