Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thestephenmarshall committed Oct 25, 2023
1 parent 08d14cc commit 53bd8de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
10 changes: 6 additions & 4 deletions _Jenkinsfile → Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ def runNodeWith(label, block, isShort) {
stage('Checkout') {
checkout scm
}

stage('Update Build Number') {
sh "echo \"CURRENT_PROJECT_VERSION = ${buildNumber}\" > ./PlaybookShowcase/Versioning.xcconfig"
sh "echo $(cat ./PlaybookShowcase/Versioning.xcconfig)"
}
if (isShort == false) {
stage('Dependencies') {
sh 'make dependencies'
Expand Down Expand Up @@ -327,9 +330,8 @@ def updateBuildNumber() {
// clone repo
dir('.buildnumber') {
try {
// sh 'git clone --depth 5 [email protected]:powerhome/nitro-buildnumber.git .'
// buildNumber = sh(returnStdout: true, script: './increment PlaybookSwift-version').trim().toInteger()
buildNumber = 666
sh 'git clone --depth 5 [email protected]:powerhome/nitro-buildnumber.git .'
buildNumber = sh(returnStdout: true, script: './increment PlaybookSwift-version').trim().toInteger()
print "Build number: ${buildNumber}"
}
finally {
Expand Down
6 changes: 6 additions & 0 deletions PlaybookShowcase/PlaybookShowcase.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/* Begin PBXBuildFile section */
639039872A13A496004576FF /* ContentListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639039862A13A496004576FF /* ContentListView.swift */; };
8F6D944E2AE98ED800AF0D15 /* Versioning.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 8F6D944D2AE98ED800AF0D15 /* Versioning.xcconfig */; };
8F6D944F2AE98ED800AF0D15 /* Versioning.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 8F6D944D2AE98ED800AF0D15 /* Versioning.xcconfig */; };
F905151B29F03B0700F9B66D /* PlaybookShowcaseApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = F905151A29F03B0700F9B66D /* PlaybookShowcaseApp.swift */; };
F905151F29F03B0700F9B66D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F905151E29F03B0700F9B66D /* Assets.xcassets */; };
F905152229F03B0700F9B66D /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F905152129F03B0700F9B66D /* Preview Assets.xcassets */; };
Expand All @@ -21,6 +23,7 @@

/* Begin PBXFileReference section */
639039862A13A496004576FF /* ContentListView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentListView.swift; sourceTree = "<group>"; };
8F6D944D2AE98ED800AF0D15 /* Versioning.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Versioning.xcconfig; sourceTree = "<group>"; };
F905151829F03B0700F9B66D /* PlaybookShowcase-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PlaybookShowcase-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F905151A29F03B0700F9B66D /* PlaybookShowcaseApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaybookShowcaseApp.swift; sourceTree = "<group>"; };
F905151E29F03B0700F9B66D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -82,6 +85,7 @@
F9370FC929EDCC0100FFD0DF = {
isa = PBXGroup;
children = (
8F6D944D2AE98ED800AF0D15 /* Versioning.xcconfig */,
F937100029EDCC1900FFD0DF /* Packages */,
F905151929F03B0700F9B66D /* PlaybookShowcase */,
F905154729F03B3C00F9B66D /* PlaybookShowcase-macOS */,
Expand Down Expand Up @@ -203,6 +207,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8F6D944E2AE98ED800AF0D15 /* Versioning.xcconfig in Resources */,
F905152229F03B0700F9B66D /* Preview Assets.xcassets in Resources */,
F905151F29F03B0700F9B66D /* Assets.xcassets in Resources */,
);
Expand All @@ -212,6 +217,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8F6D944F2AE98ED800AF0D15 /* Versioning.xcconfig in Resources */,
F943570A29F070F10051C650 /* Preview Assets.xcassets in Resources */,
F943570929F070E90051C650 /* Assets.xcassets in Resources */,
);
Expand Down
1 change: 1 addition & 0 deletions PlaybookShowcase/Versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CURRENT_PROJECT_VERSION = 135.3

0 comments on commit 53bd8de

Please sign in to comment.