devops-service | DevOps Service is the core service | Microservice library
kandi X-RAY | devops-service Summary
kandi X-RAY | devops-service Summary
DevOps Service DevOps Service是Choerodon平台实现持续交付的基础. 当前版本为: 0.22.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Import an App Service Import
- Init branch
- Perform push
- Sets project hook id
- Start image deploy task
- Get docker run command
- Get DevopsHost App DTO
- Start deployment of a jar file
- Set the status of a devop job to skip
- On auto deploy task
- Gets a page of branches
- Get a page of the cluster node info
- Delete app by id
- Create custom deploy info
- Custom custom deploy
- Create or update a manifest
- Provides a page of pages of a pipeline
- Deploy a ci pipeline deployment
- Deploys an image for a specific device
- Launch a pipeline auto deploy task
- Gets the Sonar table
- Start automatic deploy task
- Execute external app approval task
- Starts GitOps synchronously
- Get app center env detail
- Utility method to perform a pagination
devops-service Key Features
devops-service Examples and Code Snippets
Community Discussions
Trending Discussions on devops-service
QUESTION
We have an on premise server (Windows Server 2012 R2) with an Azure Pipelines agent running on it. Today (31st Jan 2022) this agent could not longer connect to our Azure DevOps organisation.
Judging by the log files, I assume this is because it is trying to connect with an older TLS version, which as of today is no longer available - https://devblogs.microsoft.com/devops/azure-devops-services-to-require-tls-1-2/
So I followed the instructions on how to make sure TLS 1.2 was enabled, and confirmed my settings in the registry editor and by running the PowerShell script suggested here - https://docs.microsoft.com/en-us/security/engineering/solving-tls1-problem#update-windows-powershell-scripts-or-related-registry-settings
All seems ok, yet it still fails to connect with the same issue. The machine has been restarted as well. If I try the URL it is requesting in the in built Internet Explorer browser, it fails, but with Chrome it succeeds, so it must still be trying to connect with TLS 1.2, but I don't know why. I've tried reinstalling the agent (with the latest build) as well but it fails on the same error. Any suggestions?
...ANSWER
Answered 2022-Jan-31 at 23:27Enabling below Cyphers with IISCrypto on the server helped us fix the issue
Cipher Suites
TLS 1.2 (suites in server-preferred order) TLS
- _DHE_RSA_WITH_AES_256_GCM_SHA384 (0x9f) DH 2048 bits FS 256 TLS
- DHE_RSA_WITH_AES_128_GCM_SHA256 (0x9e) DH 2048 bits FS 128
This from Vijay's solution
QUESTION
I have the following scenario, it is simplified for the sake of brevity, but outlines my problem.
I have a 2 Job pipeline.
BreakMatrix
Job: A job that runs on an AdminPool
and outputs 2 variables with the following names ENV1
and ENV2
. The names are important because each of them matches the name of an Environment running in a separate MachinePool
VM deployment pool.
Upgrade
Job: A deployment job that depends on the BreakMatrix
job and that runs on a VM MachinePool, with a tag that will select ENV1
and ENV2
environments.
I am trying to pass in one of the variables to each of the corresponding Environments:
...ANSWER
Answered 2021-Oct-25 at 07:30I got confirmation on the developer community that this is not possible.
Relevant part:
But I am afraid that the requirement couldn’t be achieved.
The reason is that the dependencies.xx.outputs expression can’t read the variable(variables['Agent.Name']) and format expression value defined in the YAML pipeline.
It now only supports hard-coding the name of the variable to get the corresponding job variable value.
QUESTION
Am able to create a new service endpoint using
And also able to grant it with Pipeline Permissions using below
curl --request PATCH -H "Content-Type: application/json" -u $user:$token -d "@newpatch.json" https://dev.azure.com/$org/$project/_apis/pipelines/pipelinePermissions/endpoint/$connection_id\?api-version\=5.1-preview.1
But when am trying to use the service connection in the pipeline it is giving me below error
Failed to query service connection API: 'https://management.azure.com/subscriptions/resourcegroups?api-version=2019-05-01'. Status Code: 'BadRequest', Response from server: '{"error":{"code":"InvalidSubscriptionId","message":"The provided subscription identifier 'resourcegroups' is malformed or invalid."}}'
I have tried with - update restproxy but I still see the error, not sure on the body for the script
Please help
...ANSWER
Answered 2021-Aug-10 at 13:28Passing service connection as a variable at terraform task level caused the Issue.
Since it is not supported at task level, it has to be defined globally in the yaml or from variable groups. Issue has been resolved doing it.
QUESTION
I have the pull-request build in Azure DevOps in that I have used inline PowerShell script to get the Pull Request ID by following System variables (DevOps Services) documentation.
But I want to get the values of Pull Request Created by and Approved by using predefined variables.
So, can anyone suggest how to do it.
...ANSWER
Answered 2021-Apr-21 at 06:50There are no predefined variables of Created by or Approved by for a Pull Request. Instead, you could use Pull Requests - Get Pull Request By Id api to get these information, as you have had Pull Request ID:
QUESTION
I'm a newbie to Azure
I created a new Vue project using vue create
which runs locally and even serving the dist folder too it run successfully. (serve -s dist)
And then I deployed the application using GitActions to Azure(Web App Service) which Azure DevOps services indicated that the deployment has been successful: azure-devops-service-github-actions
So I was expecting to see the default page as: vue-app-default-page-content
Instead, it still shows as: azure-site-landing-page
There are no error messages, and I'm not sure how best to debug what has gone wrong with a deployment. Also not sure if later when I use the application with any REST APIs does it include any configurations to get it up and running.
Secondly, not a blocker, but after removing these lines from the workflow - master.yml file the deployment continued without any issue. Used Node 12 and Node 14. I Googled and have no idea why??
...ANSWER
Answered 2021-Apr-05 at 02:30You need to add startup command, you can try it.
QUESTION
I built a Scale Set(Windows) and I can run simple commands successfully on my Azure Devops Custom Agent Pool, with a custom VM based on Windows 19 Server Core based on this guide.
However, when I try to access any Azure Devops predefined variables in any of my tasks they are not recognised. For example executing:
...ANSWER
Answered 2021-Apr-02 at 02:13I also tested the shell script task on my VMSS Windows-2019 agent, it can correctly print the value of the predefined variables in pipeline. I did not get any error.
I tried the VMSS created via executing the related Azure CLI on Azure Cloud Shell, and manual created on Azure Portal web UI, both of them can work fine without any error.
Please check with the following steps:
- Try the VMSS in different pipelines, different projects to see if the same issue occurs.
- Try creating a new VMSS (you can try manual creation) to see if the issue also occurs on the new VMSS.
- Check if there is any syntax or format issue in your pipeline definition (YAML file). Below is a simple pipeline as reference, I tested it on my side and it can work fine.
QUESTION
Hoping someone can help me with this as looking back at my git log I've now tried 14 different things to try to get this to work. Here's the scenario:
I created a variable in the UI called
deploy_custom_env
and checked "User can set variable at runtime." I initialized it to "default", but I am expecting users to override it when starting manual runs.I am trying to use this variable in the
condition
for some of my pipeline stages.I've tried many, many different things. Here are some examples:
First:
...ANSWER
Answered 2021-Mar-05 at 18:37If you're doing this in yml file, then $(deploy_custom_env) should work.
QUESTION
In Azure Pipeline is possible use predefined build variables (DevOps Services) Build.SourceBranch and Build.SourceBranchName but their values at case commit with tag are tags.
In doc. https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#build-variables-devops-services is written
- When your pipeline is triggered by a tag: refs/tags/your-tag-name
- The name of the branch in the triggering repo the build was queued for. Git repo branch or pull request: The last path segment in the ref. For example, in refs/heads/master this value is master. In refs/heads/feature/tools this value is tools.
- this my observation: but in case commit with tag is the last path segment of Build.SourceBranch, so your-tag-name
ANSWER
Answered 2020-Dec-07 at 03:32As it is described in the document. If the pipeline is triggered by a tag. Then variables Build.SourceBranch and Build.SourceBranchName will be the tag name.
However, you can use git commands(git branch -r --contains $(Build.SourceBranchName) | grep -v $(Build.SourceVersion)
) to retrieve the branch name that the tag points to.
If you want to use the branch name as variable, You can define a variable use the logging commands(echo "##vso[task.setvariable variable=CurrentBranch]$branch"
). For below example:
QUESTION
I'm trying to create reporting against work items in Azure DevOps from PowerBI for my entire organization. But I don't have access to all of the projects, so the odata connector returns an error. (per the last statement on https://docs.microsoft.com/en-us/azure/devops/report/powerbi/analytics-security?view=azure-devops)
Can I use a different PAT through Power BI? I don't see a way to do this.
I tried following the answer from How do you get DimIteration table information from Azure Devops Services into Power BI? with a PAT I was given and a variety of URLS, but did not work.
And I'm using Power BI (not writing C#, Java, etc.), so I don't see where the Authentication Guide fits into my solution.
...ANSWER
Answered 2020-Jan-10 at 10:10Can I use a different PAT through Power BI?
Do you mean changing authentication credentials? If so you can go through the following steps:
Click File > Options and Settings > Data Source Settings. Select the correct URL to the OData Feed and click Edit.
Click the Edit Permissions
button under the Credentials setting.
Edit the credentials as noted above, click Save, then Done, then Close.
For details ,please refer to this document. If I misunderstood the issue, please indicate.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install devops-service
You can use devops-service like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the devops-service component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page