I have been tasked to move a repository from Azure Devops to a Bitbucket server. I'm very new to Azure Devops. When I went to my repository in Azure, I noticed that I can download the repo as a zip file but there were no options to clone. I downloaded the zip file and when I tried to unzip the file, I got the following message:
unzip: can't find file table
The unzip process won't complete successfully. Will somebody explain to me why I cannot unzip a file from Azure Devops or tell me why the 'clone' option is missing?
As Daniel Mann said in the comment, there is no clone button in tfvc repo.
To get a copy of the source code ,besides using tf.exe, you can also map a worksapce through visual studio. You can map your source control folder to a single local folder.
You can refer to this document.
In addition ,download code repo to a zip file and import it to the new domain is also a way. I tested the downloading as zip and it can be successfully unzip with 7-Zip.
Related
My azure repos contains all the folders , and changes will be made by the users in the azure repos.
I want to create CI CD pipeline in azure repos to integrate azure repos and the linux server. Whenever some changes done in the azure repos should reflect in the linux server.
I want to know, how to implement the above scenerio.
According to your description, you can try to install a new self-hosted agent in your Linux server.
And then in your CI pipeline, you can use the git clone command to clone the repo in your Linux server.
You can also use the copy files task to copy the folder of the repo the to the UNC path.
I'm gearing up to upgrade from dotnet 4.8 to dotnet 6. I create a new azure repo, so I need to get all the folders/files from the source repo into the newly created repo. Is there a way to quickly transfer files? I looked around but I'm seeing just TFS to azure repo or local to azure repo.
Clone the Net4.8 repo onto your local drive
Clone the Net6 repo onto your local drive
On your local drive copy all the files except the .git folder from the Net4.8 folder to the Net6 folder
In the Net6 folder git add commit and push
Databricks recently added support for "files in repos" which is a neat feature. It gives a lot more flexibility to the projects, since we can now add .json config files and even write custom python modules that exists solely in our closed environment.
However, I just noticed that the standard way of deploying from an Azure git repo to a workspace does not support arbitrary files. First off, all .py files are converted to notebooks, breaking the custom modules that we wrote for our project. Secondly, it intentionally skips files ending in one of the following: .scala, .py, .sql, .SQL, .r, .R, .ipynb, .html, .dbc, which means our .json config files are missing when the deployment is finished.
Is there any way to get around these issues or will we have to revert everything to use notebooks like we used to?
You need to stop doing deployment the old way as it depends on the Workspace REST API that doesn't support arbitrary files. Instead you need to have a Git checkout in your destination workspace, and update that checkout to a given branch/tag when doing release. This is could be done via Repos API, or databricks cli. Here is an example of how to do that with cli from DevOps pipeline.
- script: |
echo "Checking out the releases branch"
databricks repos update --path $(STAGING_DIRECTORY) --branch "$(Build.SourceBranchName)"
env:
DATABRICKS_HOST: $(DATABRICKS_HOST)
DATABRICKS_TOKEN: $(DATABRICKS_TOKEN)
displayName: 'Update Staging repository'
I've create the Azure Notebooks library with 'aznbsetup.sh' startup file.
File doesn't run then I open the library, and .aznbsetup.log is not created.
File content is simple
#!/bin/bash
git pull
So I don't know what's happening and how to debug it
After conversation at AzureNotebooks official GH repo, the answer is
Doc is outdated
Log stored in .nb.setup.log (setup log for library), not in aznbsetup.log (doesn't exist anymore)
I duplicated a local copy of an Android project on my PC from File Explorer. This project was already uploaded onto GitHub successfully. I believe I followed the steps to rename/refactor the copy to a new name. The package name and app name all display the new name I want.
However, when I attempt to share it back on GitHub, it says it already exists (displaying the previous app name).
Not sure how to get my local, renamed version back on Github as a new project and not overwriting the previously named version.
find a hidden folder inside your project, having name .git delete it and then share your project to github.
There is config file inside .git folder, may be that having address of your remote git project.
There is no need to delete the .git folder: that would lose the history!
Simply create an empty GitHub repo, and on your local copy, do
cd /path/to/local/copy
git remote set-url origin /url/new/empty/github/repo
git push --mirror
You don't have to rename the parent folder of your local copy, or rename anything: just make sure its default remote upstream repo "origin" references now your GitHub repo.