I have a gogs repository which is loaded from local directory (I will clone git repo to that local repository periodically). In repository settings there is an option called "Sync now" to sync the repository. How to invoke this Sync now option via a jenkins job. Is there any api for Syncing the repository. Thanks in advance.
1
There are 1 best solutions below
Related Questions in GOGS
- Should the gogs suggested ssh url be the real on disk location of the repository?
- Gogs server is throwing SSL certificate problem: unable to get local issuer certificate while doing git clone
- How to Sync gogs repositories automatically
- Forbidden - When committing with html tags - GOGS
- Git removes first character from branch name
- Error Broken Pipe by Pushing Git Gogs in Eclipse
- git clone fails due to lack of memory on server side
- Git does not update branch on repositoy
- Do I need to Clone repository for adding a custom branch
- Revert a merged pull request from master branch
- Can't get known from /var/lib/docker with 'gogs docker image'. Where is the repository path of Docker on raspberry pi?
- Pipeline occurs "Could not resolve host" when I use Gogs and Drone to build a CI/CD platform
- Gogs + Drone: Gogs webhook return 400 with Cannot find repository
- Deploy to artifactory based on the data from repo
- "remote: Gogs: Internal error" error while pushing
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think Gogs provides an API for syncing. If you do have the personal access token from your Gogs account, you can trigger the repo sync.
Replace
YOUR_PERSONAL_ACCESS_TOKENwith the token you generated, 'YOUR_GOGS_URLwith the URL of your Gogs instance,OWNERwith the owner of the repository, andREPO_NAMEwith the name of the repository.Now all you have to do is schedule a Jenkins job to run in time intervals which will sync on regular basis.