Comments (3)
Looking at the error above - it says that the refresh token is not valid - it might have expired - then you need to recreate the authcontext secret with a new value.
I think your settings looks fine, here are the recommendations:
If the name of the environment (in GitHJub) is XXX_QA and the name of the environment in BC admin center is BC_QA - then this setting should work:
"DeployToXXX_QA": {
"EnvironmentName": "BC_QA",
"SyncMode": "ForceSync"
}
We do not recommend setting properties, which you don't change.
The recommended authcontext secret should be created as an environment secret and be called AUTHCONTEXT. If you do not use environment secrets, you can still call it AUTHCONTEXT, then it will be used for all environments - or you can call it XXX_QA_AUTHCONTEXT.
from al-go.
Hi, now it works.
Thank you.
I do not know why, because had allready tried to update authcontext before I created this issue.
XXX_QA is set both as github and BC environment.
Do you mean that I should not use settings if they do not change default values.
So I should not use settings
"DeployToXXX_QA": {
"EnvironmentType": "SaaS",
"EnvironmentName": "XXX_QA",
"Branches": [
"main"
],
"Projects": "",
"SyncMode": "ForceSync",
"ContinuousDeployment": true,
"runs-on": "ubuntu-latest"
},
"DeployToXXX_UAT": {
"EnvironmentType": "SaaS",
"EnvironmentName": "XXX_UAT",
"Branches": [
"main"
],
"Projects": "",
"SyncMode": "ForceSync",
"ContinuousDeployment": false,
"runs-on": "ubuntu-latest"
},
but use only these settings:
"DeployToXXX_QA": {
"SyncMode": "ForceSync",
"runs-on": "ubuntu-latest"
},
"DeployToXXX_UAT": {
"SyncMode": "ForceSync",
"ContinuousDeployment": false,
"runs-on": "ubuntu-latest"
},
I tried both setting now when Publish worked and both settings worked.
from al-go.
Yes, at https://aka.ms/algosettings#deployto you can see the defaults for these things and for this:
EnvironmentType is SaaS by default - no need to set that
EnvironmentName is the same as the github environment name - no need to set that
branches is main by default.
projects is * by default
runs-on defaults to whatever runs-on is globally - no need to set that.
The rest is special - you should set that.
from al-go.
Related Issues (20)
- Change version HOT 2
- Timeouts when downloading Artifacts? HOT 6
- AppSource App deployment failes with PerTenantExtensionCop Error PTE0001 and PTE0002 HOT 6
- Unstable workflow "Test Current" HOT 4
- CICD workflow is deploying a different app version number from the build artifact HOT 1
- keyVaultCodesignCertificateName - error HOT 3
- SyncMode for custom deployments? HOT 4
- Automatic updates for AL-Go are failing HOT 9
- Deployment to the sandbox environment failed with the error message: "underlying connection was closed." HOT 3
- Publish to AppSource fails with error code AVS0106 HOT 2
- Deliver to Storage Failing with Error Message "unable to locate apps" HOT 1
- Sync-NAVApp : Table 344 Setup Checklist Line :: The table 'Setup Checklist Line' cannot be located. Removing tables is not allowed unless they are temporary or are being moved by migration to another app. HOT 4
- BCContainerHelper settings skipped HOT 2
- RELEASENOTES.copy.md not updated when running Update AL-Go System Files? HOT 1
- Publish to AppSource does not include library app HOT 12
- Enhancement request: named secret setting fot AZURE_CREDENTIALS
- No apps to publish given during DeployTo job
- Steps in "Publish To Environment" not using custom shell-property from deployment settings
- Build cannot find build artifacts
- Deliver to Storage is not using ubuntu runner
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from al-go.