Jenkins管道外壳+管道奇怪的行为

时间:2019-02-08 02:08:41

标签: jenkins jenkins-pipeline

在管道中,我运行以下脚本从gradle项目中获取version属性,然后将主要版本存储在变量中:

var tokenValidationParameters = new TokenValidationParameters
          {
              // The signing key must match!
              ValidateIssuerSigningKey = true,
              IssuerSigningKey = signingKey,

              // Validate the JWT Issuer (iss) claim
              ValidateIssuer = false,
              ValidIssuer = issuer,

              // Validate the JWT Audience (aud) claim
              ValidateAudience = false,
              ValidAudience = audience,

              // Validate the token expiry
              //ValidateLifetime = true,

              // If you want to allow a certain amount of clock drift, set that here:
              //ClockSkew = TimeSpan.FromMinutes(1)
          };

有时候,majorVersion属性的值似乎为null,但是大多数时候它似乎都可以工作。像这样在sh命令中使用管道是否有任何限制或警告?几乎好像没有按正确的顺序运行管道。奇怪的是它一直在工作...

我知道我可以使用其他方法来实现版本属性的加载,但是我更感兴趣的是管道周围的行为……尤其是在这种情况下,应该避免使用这种方法,或者是否存在特殊情况使用它们时需要注意的事项。

0 个答案:

没有答案
相关问题