Monday , July 22 2019
Home / Uncategorized / Pipeline How To – Jenkins

Pipeline How To – Jenkins



Write the know-how to compile Xcode projects and export IPA packages using the Jenkins Pipeline function.

ス テ ッ プ ガ イ ド

  1. Import developer profile.

                                    importDeveloperProfile (importIntoExistingKeychain: false,
    profileId: & # 39; XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX & # 39;)
  2. Build the project and produce the archive.

                                    xcodebuild (
    xcodeSchema: "$ {PROJECT_SCHEMA}",
    ipaOutputDirectory: & # 39; Release & # 39 ;,
    ipaExportMethod: & # 39; app-store & # 39 ;,
    generateArchive: true,
    buildIpa: true,
    ipaName: "$ {BUILD_TARGET}",
    bundleID: "com.example.TargetApp",
    developmentTeamName: "$ {DEVELOPMENT_TEAM_NAME}",
    cleanBeforeBuild: true,
    configuration: & # 39; Release & # 39 ;,
    cfBundleShortVersionStringValue: & # 39; 1.0.0 & # 39 ;,
    cfBundleVersionValue: & # 39; 1 & # 39;
    )
  3. Export the IPA file from the archive.

                    exportIpa (
    archiveDir: "$ {WORKSPACE} / $ {repositoryName} / build / Release-iphoneos",
    xcodeSchema: "$ {PROJECT_SCHEMA}",
    developmentTeamName: "$ {DEVELOPMENT_TEAM}",
    configuration: "AdHoc",
    infoPlistPath: "$ {INFO_PLIST}",
    manualSigning: true,
    provisioningProfiles: [
                [provisioningProfileAppId: "${BUNDLE_ID}", provisioningProfileUUID: 'TestApp_AdHoc_Profile.mobileprovision']
                [provisioningProfileAppId: "${BUNDLE_ID}.watchkitapp", provisioningProfileUUID: 'TestApp_AdHoc_Profile.mobileprovision'],
                [provisioningProfileAppId: "${BUNDLE_ID}.watchkitapp.watchkitextension", provisioningProfileUUID: 'TestApp_AdHoc_Profile.mobileprovision']
            ],
    ipaExportMethod: "ad-hoc",
    ipaName: "$ {BUILD_TARGET}",
    ipaOutputDirectory: "AdHoc"
    )
  4. Upload the exported IPA file.

When using "XCode" Manage automatically the signature ", several ways are required, so please note the points to be noted separately.

関 連 記事


Source link

Leave a Reply

Your email address will not be published.