I installed scm-manager on CentOS-7 and import repositories via web browser (previous exported with svnadmin dump).
How can I export/backup repositories via commandline? Can't find svn/svnadmin command.
SCM-Manager does not install the subversion binaries, because it uses the java implementation of subversion (svnkit). If you want to use svnadmin to dump the repositories, you have to install subversion by your self e.g.:
yum install subversion
After the installation you can use svnadmin to dump your repositories.
Related
I am trying to automate build and deployment of .Net windows service and SQL server scripts using Jenkins.
For .Net windows service, I am able to use MSBuild to create release exe/dlls. I have zipped the release folder and uploaded to Nexus.
For SQL server scripts, I have started using SSDT and able to create .dacpac file. I am also able to generate deployment script for a specific server using the .dacpac file. I have uploaded the .dacpac file to Nexus.
I am not sure what the best practices to deploy .Net artifacts from Nexus. I have the following questions:
How do I deploy .net Nexus packages? (do I unzip them and use
InstallUtil to install the service?)
How do I deploy sql .dacpac Nexus package? (do I unzip the
package and use SQLPackage to generate a script for the target
database server?)
Are there any better ways to deploy .Net Nexus packages?
Use NuGet packages and upload NuGet packages to nexus.
create a NuGet package using nuget pack command. You can do
this part of your msbuild
Push the above created NuGet package to
Nexus using nuget push command.
Here is the link about how to setup .Net Package repositories in Nexus
https://help.sonatype.com/repomanager2/.net-package-repositories-with-nuget
Background info
I plan to create two containers.
Container 1 will have Jenkins and Git installed. The purpose of having Git installed with Jenkins is so I can retrieve my git repository in the "Select pipeline script from scm" section in a pipeline job. The container needs to have access to Git.
Container 2 will have all the dependencies for my .NET Windows application installed (MSBuild, Wix, Nuget, .NET frameworks, etc.).
Challenge
For container 1, how do I install Git if my base image is jenkins:latest. I tried using apt-get and apk add. Those obviously don't work since my base image is not ubuntu or alpine...
I expect downloading the packages in container 2 will be a lot easier since I would just use the ubuntu base image.
Looking at Jenkins's dockerfile, it looks like git is pre-installed for you.
For challenge 2, since you're using a ubuntu image, it's just the same as installing .Net dependencies on a ubuntu machine.
I have a machine with blocked outgoing connections so it is not possible to update jenkins nor install the plugins I need for my work.
My idea is the following: I download the jenkins .war on my personal laptop and complete the installation + the plugin download.
Then I just move this .war to the machine where I need jenkins to be up and running.
Is it possible? Where are the plugins/updated data stored?
Also, would it be a problem the fact that my laptop has windows as os, while the destination machine is a linux RHEL?
Your solution sounds crazy :D
This could be help you:
Update Jenkins war
If you have shell access with root privilege, there is a manual way.
Download latest war file inside your linux, using wget , curl or just upload it using winscp from your windows.
Stop jenkins
Backup EVERYTHING: linux snapshot, jenkins workspace, jenkins war file, etc
Replace the old war with new war
Start jenkins
Detailed steps in this webs:
https://mohitgoyal.co/2017/02/15/upgrade-jenkins-server-to-a-new-version/
https://www.thegeekstuff.com/2016/06/upgrade-jenkins-and-plugins/
Plugin
Jenkins has an option to install plugins called Manage Plugins
This offer two options :
(1) Install plugins using available option
For official and compatible plugins, suggested by Jenkins :
(2) Install plugins using upload option
For custom plugins or when is not available on official repositories:
Is there a way to install only build dependencies of a package with the container-based builds of travis-ci?
The migration guide does not mention build-dep.
It is possible to explicitly list all the dependencies, but an automated method would be favorable.
I am trying to install a couple of dependency packages for testing my code on Travis-CI. I am an education user, so all my builds get sent to a container-based instance. Because it is container-based, I cannot use sudo to install the packages. Is there a workaround for this?
Sort of.
Through the apt_packages addon, you can specify additional packages to be installed with your .travis.yml file.
addons:
apt_pacakges:
- lib32stdc++6
You can only installed packages that are on the whitelist.