Coder Social home page Coder Social logo

Comments (3)

azlam-abdulsalam avatar azlam-abdulsalam commented on June 25, 2024 1

@extravio We have released a patch to this bug. Please let us know if it works.

from sfpowerscripts.

azlam-abdulsalam avatar azlam-abdulsalam commented on June 25, 2024

@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.

extravio avatar extravio commented on June 25, 2024

Many thanks for the quick turnaround. It works perfectly! ^ @azlam-abdulsalam

from sfpowerscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.