Comments (3)
@extravio We have released a patch to this bug. Please let us know if it works.
from sfpowerscripts.
@extravio Thanks for reaching out! Looks like the latest release which had lot of artifact refactoring broke the YAML compat. We will be addressing it early next week. At the moment, we have a shortcoming, all our test suites for the release side of things are based on classic, hence the miss.
While we fix this, here is the workaround in YAML. Please use the <version_numbers> of tasks in your org.
Also note you need to use download the artifact using the download step in the deployment stage
stages:
#Build Source Package
- stage: BuildSourcePackage
displayName: 'Build a source package and test multiple deployments'
dependsOn: []
condition: ''
jobs:
- job: SourcePackageBuild
strategy:
matrix:
ubuntu::
image: 'ubuntu-latest'
pool:
vmImage: $(image)
displayName: Source Package build for force-di
steps:
- task: sfpwowerscript-installsfdx-task@7
displayName: Install SFDX
- task: sfpwowerscripts-createsourcepackage-task@13
displayName: Create a new version of Source Package
name: createpackage
inputs:
package: force-di
version_number: 1.0.0.$(Build.BuildNumber)
#Deploy Source Package
- stage: DeploySourcePackage
displayName: 'Deploy Source Package'
dependsOn: BuildSourcePackage
condition: ''
jobs:
- job: DeploySourcePackage
strategy:
matrix:
ubuntu::
image: 'ubuntu-latest'
pool:
vmImage: $(image)
displayName: Install the Source Package to an org
steps:
- download: current
- task: sfpwowerscript-installsfdx-task@7
displayName: Install SFDX
- task: sfpwowerscript-authenticateorg-task@9
displayName: Authenticate Org
inputs:
method: JWT
jwt_key_file: server.key
username: $(username)
alias: HubOrg
isdevhub: true
clientid: $(clientid)
- task: sfpwowerscript-managescratchorg-task@8
displayName: Create Scratch Org
inputs:
action: Create
config_file_path: config/project-scratch-def.json
alias: scratchorg
devhub_alias: HubOrg
maintainorg: delete
- task: sfpowerscript-deploysourcetoorg-task@10
displayName: Deploy Source Directory to the org
inputs:
target_org: 'scratchorg'
source_directory: 'force-di'
checkonly: true
ignorewarnings: true
ignoreerror: true
wait_time: '20'
testlevel: 'NoTestRun'
isToBreakBuildIfEmpty: true
from sfpowerscripts.
Many thanks for the quick turnaround. It works perfectly! ^ @azlam-abdulsalam
from sfpowerscripts.
Related Issues (20)
- Ignore empty aliasfied package during the validation
- Dead Link in README.md: "Getting Started with CI/CD" HOT 1
- Error while running : sfpowerscripts apextests:trigger -l RunApexTestSuite HOT 1
- Some sfpowerscripts commands not available to use with any docker image HOT 2
- Example commands for "sfp releasedefinition:generate" missing (required) fields
- End of Life for Reviewpad
- Parallel apex retry doesn't handle error cases: 'Too many concurrent Apex compilations during resource mitigation' & 'LIMIT_EXCEEDED'
- Error in GitHub Workflow: sfpowerscripts Orchestrator:Prepare with auth:accesstoken:store HOT 4
- Deployments do not honor waitTime HOT 5
- Unable to process Picklist update due to Cannot read properties of undefined (reading 'Metadata') HOT 2
- December 23 - sfp container should have plugins preinstalled
- Enhancement: dependency:install add a filter based on releasedefinition
- sfp releasedefinition:generate does not change or overwrite an existing file
- Commands crash when using "branch" attributes in package dependencies HOT 1
- Prepare does not support -c flag for scratch org creation
- Picklist deploy resulting in "Cannot update or delete a picklist while a picklist background job is being executed" error HOT 3
- Parallel tests are failing while using command "sfpowerscripts apextests:trigger -l RunApexTestSuite --apextestsuite testsuite0 -u org_name HOT 2
- apextests:trigger --validatepackagecoverage Reports error when overall package coverage is sufficient HOT 1
- sfpowerscripts packages HOT 1
- dxatscale is transitioning to flxbl, please create issues is flxbl-io/sfp
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 sfpowerscripts.