Skip to content

Commit 3c58af6

Browse files
Merge pull request #21 from bitrise-io/release-invocation-id-matching
feat: ACI-1655 Bump analytics and cache plugin version
2 parents 959a199 + fa6120f commit 3c58af6

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

bitrise.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ workflows:
6565
- content: |-
6666
#!/bin/bash
6767
set -ex
68-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
68+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.58.0
6969
./bin/golangci-lint run -v
7070
- go-test@1: {}
7171
- deploy-to-bitrise-io@2: {}

cmd/enableForBazel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If the file doesn't exist it will be created.
2525
If it already exists a "# [start/end] generated-by-bitrise-build-cache" block will be added to the end of the file.
2626
If the "# [start/end] generated-by-bitrise-build-cache" block is already present in the file then only the block's content will be modified.
2727
`,
28-
RunE: func(cmd *cobra.Command, args []string) error {
28+
RunE: func(_ *cobra.Command, _ []string) error {
2929
//
3030
logger := log.NewLogger()
3131
logger.EnableDebugLog(isDebugLogMode)
@@ -93,7 +93,7 @@ func enableForBazelCmdFn(logger log.Logger, homeDirPath string, envProvider func
9393
)
9494

9595
logger.Infof("(i) Writing config into ~/.bazelrc")
96-
err = os.WriteFile(bazelrcPath, []byte(bazelrcContent), 0755) //nolint:gosec,gomnd
96+
err = os.WriteFile(bazelrcPath, []byte(bazelrcContent), 0755) //nolint:gosec,gomnd,mnd
9797
if err != nil {
9898
return fmt.Errorf("write bazelrc config to %s, error: %w", bazelrcPath, err)
9999
}

cmd/enableForGradle.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The gradle.properties file will be created if it doesn't exist.
3131
If it already exists a "# [start/end] generated-by-bitrise-build-cache" block will be added to the end of the file.
3232
If the "# [start/end] generated-by-bitrise-build-cache" block is already present in the file then only the block's content will be modified.
3333
`,
34-
RunE: func(cmd *cobra.Command, args []string) error {
34+
RunE: func(_ *cobra.Command, _ []string) error {
3535
//
3636
logger := log.NewLogger()
3737
logger.EnableDebugLog(isDebugLogMode)
@@ -80,7 +80,7 @@ func enableForGradleCmdFn(logger log.Logger, gradleHomePath string, envProvider
8080

8181
logger.Infof("(i) Ensure ~/.gradle and ~/.gradle/init.d directories exist")
8282
gradleInitDPath := filepath.Join(gradleHomePath, "init.d")
83-
err = os.MkdirAll(gradleInitDPath, 0755) //nolint:gomnd
83+
err = os.MkdirAll(gradleInitDPath, 0755) //nolint:gomnd,mnd
8484
if err != nil {
8585
return fmt.Errorf("ensure ~/.gradle/init.d exists: %w", err)
8686
}
@@ -94,7 +94,7 @@ func enableForGradleCmdFn(logger log.Logger, gradleHomePath string, envProvider
9494
logger.Infof("(i) Write ~/.gradle/init.d/bitrise-build-cache-init.gradle.kts")
9595
{
9696
initGradlePath := filepath.Join(gradleInitDPath, "bitrise-build-cache-init.gradle.kts")
97-
err = os.WriteFile(initGradlePath, []byte(initGradleContent), 0755) //nolint:gosec,gomnd
97+
err = os.WriteFile(initGradlePath, []byte(initGradleContent), 0755) //nolint:gosec,gomnd,mnd
9898
if err != nil {
9999
return fmt.Errorf("write bitrise-build-cache-init.gradle.kts to %s, error: %w", initGradlePath, err)
100100
}
@@ -116,7 +116,7 @@ func enableForGradleCmdFn(logger log.Logger, gradleHomePath string, envProvider
116116
"org.gradle.caching=true",
117117
)
118118

119-
err = os.WriteFile(gradlePropertiesPath, []byte(gradlePropertiesContent), 0755) //nolint:gosec,gomnd
119+
err = os.WriteFile(gradlePropertiesPath, []byte(gradlePropertiesContent), 0755) //nolint:gosec,gomnd,mnd
120120
if err != nil {
121121
return fmt.Errorf("write gradle.properties to %s, error: %w", gradlePropertiesPath, err)
122122
}

cmd/restoreGradleOutputData.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var restoreGradleOutputDataCmd = &cobra.Command{ //nolint:gochecknoglobals
1818
This command will:
1919
- Restore the Gradle output data from the Bitrise key-value cache.
2020
`,
21-
RunE: func(cmd *cobra.Command, args []string) error {
21+
RunE: func(_ *cobra.Command, _ []string) error {
2222
logger := log.NewLogger()
2323
logger.EnableDebugLog(isDebugLogMode)
2424
logger.TInfof("Restore Gradle output data from cache, for running diagnostics builds")

cmd/saveGradleOutputData.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var saveGradleOutputDataCmd = &cobra.Command{ //nolint:gochecknoglobals
1919
- Collect the contents of **/build/ + .gradle/ directories.
2020
- Save the collected data to the Bitrise key-value cache.
2121
`,
22-
RunE: func(cmd *cobra.Command, args []string) error {
22+
RunE: func(_ *cobra.Command, _ []string) error {
2323
logger := log.NewLogger()
2424
logger.EnableDebugLog(isDebugLogMode)
2525
logger.TInfof("Save Gradle output data to cache, for running diagnostics builds")

internal/config/gradle/gradleconfig_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ initscript {
110110
maven(url="https://jitpack.io")
111111
}
112112
dependencies {
113-
classpath("io.bitrise.gradle:remote-cache:1.2.3")
114-
classpath("io.bitrise.gradle:gradle-analytics:2.1.2")
113+
classpath("io.bitrise.gradle:remote-cache:1.2.4")
114+
classpath("io.bitrise.gradle:gradle-analytics:2.1.3")
115115
}
116116
}
117117
@@ -165,8 +165,8 @@ initscript {
165165
maven(url="https://jitpack.io")
166166
}
167167
dependencies {
168-
classpath("io.bitrise.gradle:remote-cache:1.2.3")
169-
classpath("io.bitrise.gradle:gradle-analytics:2.1.2")
168+
classpath("io.bitrise.gradle:remote-cache:1.2.4")
169+
classpath("io.bitrise.gradle:gradle-analytics:2.1.3")
170170
}
171171
}
172172
@@ -217,7 +217,7 @@ initscript {
217217
maven(url="https://jitpack.io")
218218
}
219219
dependencies {
220-
classpath("io.bitrise.gradle:remote-cache:1.2.3")
220+
classpath("io.bitrise.gradle:remote-cache:1.2.4")
221221
}
222222
}
223223

internal/consts/consts.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const (
66
EndpointURLATL1 = "grpc://atl-cache.services.bitrise.io:6666"
77

88
// Gradle Remote Build Cache related consts
9-
GradleRemoteBuildCachePluginDepVersion = "1.2.3"
9+
GradleRemoteBuildCachePluginDepVersion = "1.2.4"
1010

1111
// Gradle Analytics related consts
12-
GradleAnalyticsPluginDepVersion = "2.1.2"
12+
GradleAnalyticsPluginDepVersion = "2.1.3"
1313
GradleAnalyticsEndpoint = "gradle-analytics.services.bitrise.io"
1414
GradleAnalyticsHTTPEndpoint = "https://gradle-sink.services.bitrise.io"
1515
GradleAnalyticsPort = 443

0 commit comments

Comments
 (0)