Skip to content

Upgrade to new jcasc test harness - #168

Merged
gavinfish merged 1 commit into
jenkinsci:devfrom
timja:update-to-new-jcasc-test-harness
Jan 14, 2020
Merged

Upgrade to new jcasc test harness#168
gavinfish merged 1 commit into
jenkinsci:devfrom
timja:update-to-new-jcasc-test-harness

Conversation

@timja

@timja timja commented Jan 14, 2020

Copy link
Copy Markdown
Member

JCasc had to create a new dependency that wasn't a tests classifier because maven doesn't allow you to bring dependencies through classifiers.

Upgrading here so that PCT works again,

Tracking:
jenkinsci/bom#164

public class CredentialRenameTest {
public static File input = new File("src/test/resources/com/microsoftopentechnologies/helper/correctFormatOldConfig.xml");
private Jenkins jenkinsInstance;
private static final String correctConfigContent =

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on new credentials it seems like the credential.xml was cached in memory and credentials weren't being loaded by just overwriting it on the file system

FileUtils.writeStringToFile(configFile, correctConfigContent);
FileUtils.copyFileToDirectory(configFile, jenkinsInstance.root);

CredentialRename.renameStorageConfig();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is called on startup, no need to call it again

@timja

timja commented Jan 14, 2020

Copy link
Copy Markdown
Member Author

Would be great to get a release with this in, so it can be used in PCT @gavinfish 😄

Comment thread pom.xml
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>credentials</artifactId>
<version>2.1.16</version>
<version>2.2.0</version>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The credentials configurator moved to the credentials plugin from the support plugin in this version

@gavinfish gavinfish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
nice work 🎉

@gavinfish
gavinfish merged commit c550f1a into jenkinsci:dev Jan 14, 2020
@timja
timja deleted the update-to-new-jcasc-test-harness branch January 14, 2020 07:53
@gavinfish

Copy link
Copy Markdown
Member

Would be great to get a release with this in, so it can be used in PCT @gavinfish 😄

Sure, I will draft a release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants